[Fontconfig] Seeking to override fonts in ~/.fonts.conf.

Philippe Anctil z77y16 at hotmail.com
Sat Nov 12 18:33:13 PST 2005


>From: "Michael A. Peters" <mpeters at mac.com>

>On Sat, 2005-11-12 at 11:13 -0500, Philippe Anctil wrote:
>
> > Here are some pages I'm using to see if my preferred fonts are used:
> > http://www.gtk.org/faq/ - Uses helvetica by default. My override worked.
> > http://winehq.org/ - Uses bitstream vera sans, which I'm unable to 
>override.
> > http://download.fedora.redhat.com/pub/fedora/linux/extras/4/i386/ - Uses
> > lucida sans. I'm unable to override it.
>
>My understanding is that aliasing only works if the real font is not
>available. So if bitstream vera sans is installed, it will be used.
>
>You may be able to blacklist bitstream vera sans.
>

In my ~/.fonts.conf, I have defined the following:

<alias>
  <family>helvetica</family>
  <family>Luxi Sans</family>
  <family>lucida</family>
  <family>Bitstream Vera Sans</family>
  <prefer>
   <family>sans-serif</family>
  </prefer>
</alias>

<alias>
  <family>sans-serif</family>
  <prefer>
   <family>verdana</family>
  </prefer>
</alias>

Helvetica gets replaced by verdana without problems.
Luxi gets replaced by some font, but not verdana.
Bitstream stays the same.
Lucida always look the same as my prefered sans-serif font, even if I remove 
it from the above rule.

Do you understand this behavior? I can't get font substitution to work 
"properly".

Thanks!





More information about the Fontconfig mailing list