Hi, it was recently brought to my attention that some web sites, like xkcd.com request Lucida fonts by default, and on Linux and *BSD systems get the more or less ugly X bitmapped fonts. For the OpenBSD project, I wrote the following substitution file to try to provide saner fonts for the Lucida family when not present (or when only the bitmapped ones are there) and to prefer the truetype versions if present. I''d like to have comments/better suggestions on it, and eventually see if something like that can become part of the default fontconfig install. <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <!-- Provides alternatives for various Lucida fonts --> <!-- Substitutions for ugly bitmap fonts --> <match target="pattern"> <test qual="any" name="family"> <string>Lucida</string> </test> <edit name="family" mode="assign"> <string>Lucida Sans</string> </edit> </match> <match target="pattern"> <test qual="any" name="family"> <string>LucidaBright</string> </test> <edit name="family" mode="assign"> <string>Lucida Bright</string> </edit> </match> <match target="pattern"> <test qual="any" name="family"> <string>LucidaTypewriter</string> </test> <edit name="family" mode="assign"> <string>Lucida Sans Typewriter</string> </edit> </match> <!-- Aliases --> <alias binding="same"> <family>Lucida</family> <accept> <family>Luxi Sans</family> </accept> </alias> <alias binding="same"> <family>Lucida Grande</family> <accept> <family>Lucida Sans</family> <family>Luxi Sans</family> </accept> </alias> <alias binding="same"> <family>Lucida Sans Unicode</family> <accept> <family>Lucida Sans</family> <family>Luxi Sans</family> </accept> </alias> <alias binding="same"> <family>Lucida Sans</family> <accept><family>Luxi Sans</family></accept> </alias> <alias binding="same"> <family>Lucida Sans Typewriter</family> <accept> <family>DejaVu Sans Mono</family> </accept> </alias> <alias binding="same"> <family>Lucida Console</family> <accept> <family>Lucida Sans Typewriter</family> <family>DejaVu Sans Mono</family> </accept> </alias> <alias binding="strong"> <family>Lucida Bright</family> <accept> <family>Luxi Serif</family> <family>DejaVu Serif</family> </accept> </alias> </fontconfig> -- Matthieu Herrb
Hi, On 2012-01-10 23:02, Matthieu Herrb wrote:> it was recently brought to my attention that some web sites, like > xkcd.com request Lucida fonts by default, and on Linux and *BSD > systems get the more or less ugly X bitmapped fonts.Wouldn''t it be more common to simply disable bitmap fonts altogether for people who don''t like them? I mean, using <rejectfont> to remove non-scalable fonts? This is normally something the user chooses when their distribution configures the fontconfig installation. Still, I would dare say that any website that specifically uses the name "Lucida" (such as xkcd) aims at getting the bitmap variant, given that spelling isn''t really used for any scalable Lucida variant I know of. Unconditionally rewriting that seems a bit radical. I personally prefer 75dpi PCF Lucida over the anti-aliased variants any day (especially in my editor, which naturally also uses fontconfig), but then again, I''m on Solaris where the Lucida Sans* fonts are available as TTF, and I''m already used to having a hard time getting my bitmap Lucida... Raimund -- Worringer Str 31 Duesseldorf 40211 Germany +49-179-2981632 icq 16845346
Hi, I''m not sure your substitution rules will help a lot of people: Luxi deployments are marginal nowadays? (due to its infortunate non-free licensing) and Lucida Sans Typewriter used to be widely available through jvm installations (when the packaging bothered to put it in system font paths), but even Oracle has been pushing OpenJDK lately and non-free fonts have been pulled from that. ? Even on the Linux-specific part of codestyle''s font survey it has dropped way below some very obscure fonts: http://www.codestyle.org/css/font-family/sampler-LinuxResultsFull.shtml Regards, -- Nicolas Mailhot