You are not logged in.

#1 2013-07-27 12:08:14

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

[Solved] How to disable some font or group of fonts for gtk/qt apps?

Hello Archers. I've been searching how to disable fonts in gtk/qt programs but find only how to disable anti-aliasing and other parameters, but not fonts themselves. I want to remove/disable nimbus fonts, but they are not even presented in a system with this name. I can't find them. Help me please remove them somehow.

Last edited by Mr. Alex (2013-07-27 15:15:45)

Offline

#2 2013-07-27 12:33:59

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [Solved] How to disable some font or group of fonts for gtk/qt apps?

An example fontconfig rule:

    <match>
        <test name="family"><string>Nunito</string></test>
        <edit mode="assign" name="family" binding="strong">
            <string>Arial Rounded MT Std</string>
        </edit>
    </match>

Offline

#3 2013-07-27 13:15:49

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: [Solved] How to disable some font or group of fonts for gtk/qt apps?

Where do I set the font name? In "test string" or in "edit string"? Tried both and it didn't work. Can you give me more clear instructions please? I don't understand this hint. And where is "disable" directive?

Last edited by Mr. Alex (2013-07-27 13:16:29)

Offline

#4 2013-07-27 15:15:32

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: [Solved] How to disable some font or group of fonts for gtk/qt apps?

Found it. Actually it looks different:

<selectfont>
  <rejectfont>
    <pattern>
      <patelt name="family" >
        <string>Nimbus Roman No9</string> <!-- Actual name of font, not family -->
      </patelt>
      </pattern>
  </rejectfont>
</selectfont>

Last edited by Mr. Alex (2013-07-27 15:16:30)

Offline

Board footer

Powered by FluxBB