[Fontconfig] style preference in config

Jeremy Huddleston jeremyhu at freedesktop.org
Mon Apr 20 17:55:12 PDT 2009


On Apr 20, 2009, at 12:18, Behdad Esfahbod wrote:
>>> fontconfig is just selecting a font for you. It's not involved in  
>>> the
>>> rendering pipeline at all. If you change the style, it picks up
>>> another font that happens to work.
>>
>> Right, that's my point. fontconfig is picking this japanese font to
>> render with. How do I edit the fontconfig config files to prefer a
>> "Regular" style if no style is explicitly requested.
>
> fontconfig does that by default.  It's perhaps the Japanese font  
> installing some config file pushing itself up as the default font.

That doesn't seem to be the case here.  That font comes from font-misc- 
misc (ftp://ftp.x.org/pub/individual/font/font-misc- 
misc-1.0.0.tar.bz2) which has nothing to do with fontconfig (and  
doesn't install any fontconfig files).  The only package installing  
anything in fonts/conf.d is fontconfig, and we're using the defaults:

20-fix-globaladvance.conf  30-urw-aliases.conf  49-sansserif.conf  60- 
latin.conf          69-unifont.conf    README
20-unhint-small-vera.conf  40-nonlatin.conf     50-user.conf       65- 
fonts-persian.conf  80-delicious.conf
30-metric-aliases.conf     45-latin.conf        51-local.conf      65- 
nonlatin.conf       90-synthetic.conf

>  However, the bug with the garbled output remains regardless.   
> That's pretty much all I can say.

Well the garbled output occurs identically when using a completely  
different X server (Xorg 1.6.x on fedora ppc versus XQuartz 1.4.x on  
darwin x86), so it doesn't seem like a specific X-server driver issue  
to me... perhaps it's a bug in cairo or freetype, but not in the X  
server or its associated drivers.

But still... how is it that the Regular style is not being preferred?




More information about the Fontconfig mailing list