[Fontconfig] conf.d and fake embolding / italics

Patrick Lam plam at MIT.EDU
Sun Nov 6 14:06:32 PST 2005


Michael A. Peters wrote:
> The problem is that fake bold and italic are turned on in
> the /etc/fonts/fonts.conf file - and can not be turned off (as far as I
> can tell) without modifying that file. Since that file is not suppose to
> modified, there basically is not a proper way to disable them if you
> don't want them.

I don't have anything against creating 
/etc/fonts/conf.d/artificial-embolden.conf.  However, it seems that the 
system administrator can simply create the following 
/etc/fonts/local.conf file:

         <match target="font">
                 <!-- check to see if the font is just regular -->
                 <test name="weight" compare="less_eq">
                         <int>100</int>
                 </test>
                 <!-- check to see if the pattern requests bold -->
                 <test target="pattern" name="weight" compare="more_eq">
                         <int>200</int>
                 </test>
                 <!-- set the embolden flag -->
                 <edit name="embolden" mode="assign">
                         <bool>false</bool>
                 </edit>
         </match>

and similarly for italics.

pat



More information about the Fontconfig mailing list