[Fontconfig] Re: fixed width fonts appear bold

Mike FABIAN mfabian at suse.de
Thu Mar 30 22:23:22 PST 2006


Patrick Lam <plam at MIT.EDU> さんは書きました:

> Andrei A. Voropaev wrote:
>> On Thu, Mar 23, 2006 at 05:57:37PM +0100, Andrei A. Voropaev wrote:
>>> Also, I have cyrillic bitmap fonts in /usr/X11R6/lib/X11/fonts/cyrillic
>>> directory. For whatever reason the fonts.cache-1 file in it is empty,
>>> fc-cache -v says
>>>
>>> fc-cache: "/usr/X11R6/lib/X11/fonts/cyrillic": caching, 0 fonts, 0 dirs
>>>
>>> Why doesn't it find any fonts in it, when regular xlsfont lists all
>>> fonts from that directory?
>> 
>> This appears to be because of this chunk of code in fcfreetype.c:1556
>> 
>>     /*
>>      * Skip over PCF fonts that have no encoded characters; they're
>>      * usually just Unicode fonts transcoded to some legacy encoding
>>      */
>>     if (FcCharSetCount (cs) == 0)
>>     {
>> 	if (!strcmp(FT_MODULE_CLASS(&face->driver->root)->module_name, "pcf"))
>> 	    goto bail2;
>>     }
>> 
>> So I guess this applies to cyrillic koi8-r fonts :) Or it could be that
>> I have some "incorrect" version of freetype library.
>
> It would seem that there's something fishy with those fonts.

They are koi8-r encoded. They cannot work with fontconfig as
fontconfig supports only ISO-8859-1 and Unicode fonts.  Therefore they
are skipped using the above code.

-- 
Mike FABIAN   <mfabian at suse.de>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。



More information about the Fontconfig mailing list