Michael A. Peters
2005-Nov-21 08:51 UTC
[Fontconfig] Seeking to override fonts in ~/.fonts.conf.
On Sat, 2005-11-12 at 11:13 -0500, Philippe Anctil wrote: *snip*> > 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.*snip* 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.
Philippe Anctil
2005-Nov-21 08:51 UTC
[Fontconfig] Seeking to override fonts in ~/.fonts.conf.
>From: "Michael A. Peters" <mpeters@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!
Philippe Anctil
2005-Nov-21 08:51 UTC
[Fontconfig] Seeking to override fonts in ~/.fonts.conf.
Hi everyone, There are some fonts which I''d like to override for Arial. I have succeeded doing that with Helvetica by adding the following in my ~/.fonts.conf: <alias> <family>helvetica</family> <prefer><family>arial</family></prefer> <default><family>arial</family></default> </alias> This trick does not appear to be working for "lucida sans" dans "bitstream vera sans". I wonder why. Am I using the right syntax or is there a better way to reach my goal? 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. I also have the impression my antialiasing settings aren''t applied on lucida and bistream fonts, ie the shouldn''t be aliased since same size arial does not get aliased. Thanks!