NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

suboptimal default fontconfig configuration



Hello,

while debugging a font rendering [1]problem on NetBSD/i386 5.0_STABLE
and -current systems running native Xorg, I noticed that the default
fontconfig configuration (/etc/fonts/...) is somehow suboptimal:

Problem 1)

/etc/fonts/fonts.conf seems to be outdated: it contains functionality
which has been moved to separate configuration files (.../conf.d) in the
meantime.

It should probably be updated based on the default file which ships with
NetBSD's fontconfig (xsrc/external/mit/fontconfig/dist/fonts.conf.in).
Or is there a reason to keep this file as it currently is?


Problem 2)

All the default [0-9]0-9]-*.conf files shipping with fontconfig are just
installed to /etc/fonts/conf.d, which means that all of them are enabled
by default.  The fontconfig default is to just enable some of them
(see CONF_FILES and CONF_LINKS in
xsrc/external/mit/fontconfig/dist/conf.d/Makefile.am).  Enabling all of
them like it's currently done means that for example bitmap fonts are
accepted and rejected at the same time (see 70-yes-bitmaps.conf and
70-no-bitmaps.conf)...

What about installing those config files to /etc/fonts/conf.avail and
symlinking _some_ of them (probably the subset listed in CONF_LINKS)
from /etc/fonts/conf.d, as it's recommended in the fontconfig README?


Regards, Jukka

[1] http://mail-index.netbsd.org/pkgsrc-users/2009/04/28/msg009724.html
[2] http://salmi.ch/~jukka/nbsd/fontconfig/fc_default.png
[3] http://salmi.ch/~jukka/nbsd/fontconfig/nbsd_default.png

-- 
This email fills a much-needed gap in the archives.


Home | Main Index | Thread Index | Old Index