[Fontconfig] Bug with fc-match

Mike FABIAN mfabian at suse.de
Fri Feb 10 04:01:16 PST 2006


Mike FABIAN <mfabian at suse.de> さんは書きました:

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

>> I'm a bit worried, because both Takashi's patch and what I committed
>> seem to drop |en| from two fonts which *do* have the Euro symbol,
>> Bitstream Charter and Courier 10 Pitch.
>
> No, these fonts definitely do *not* have the Euro symbol.

While checking again whether these fonts have an Euro symbol,
I noticed a bug with fc-match:

mfabian at magellan:~$ fc-list  "Bitstream Charter:style=Regular" file scalable outline
/usr/X11R6/lib/X11/fonts/Type1/c0648bt_.pfb: :outline=True:scalable=True
/usr/X11R6/lib/X11/fonts/75dpi/charR18.pcf.gz: :outline=False:scalable=False
/usr/X11R6/lib/X11/fonts/75dpi/charR08.pcf.gz: :outline=False:scalable=False
/usr/X11R6/lib/X11/fonts/75dpi/charR10.pcf.gz: :outline=False:scalable=False
/usr/X11R6/lib/X11/fonts/75dpi/charR12.pcf.gz: :outline=False:scalable=False
/usr/share/ghostscript/fonts/bchr.pfa: :outline=True:scalable=True
/usr/X11R6/lib/X11/fonts/75dpi/charR14.pcf.gz: :outline=False:scalable=False
/usr/X11R6/lib/X11/fonts/75dpi/charR24.pcf.gz: :outline=False:scalable=False
mfabian at magellan:~$

I.e. there are both outline and bitmap versions of "Bitstream Charter"
available. fc-list works fine, but trying to match the outline
versions with fc-match doesn't work, it always matches the bitmap
versions:

mfabian at magellan:~$ fc-match  "Bitstream Charter:style=Regular:outline=true"
charR12.pcf.gz: "Bitstream Charter" "Regular"
mfabian at magellan:~$ fc-match  "Bitstream Charter:style=Regular:scalable=true"
charR12.pcf.gz: "Bitstream Charter" "Regular"
mfabian at magellan:~$

This worked correctly with fontconfig-2.3.2.20050721:

mike at nozomi:~$ fc-list  "Bitstream Charter:style=Regular" file scalable outline
/usr/X11R6/lib/X11/fonts/Type1/c0648bt_.pfb: :outline=True:scalable=True
/usr/X11R6/lib/X11/fonts/75dpi/charR08.pcf.gz: :outline=False:scalable=False
/usr/X11R6/lib/X11/fonts/75dpi/charR10.pcf.gz: :outline=False:scalable=False
/usr/X11R6/lib/X11/fonts/75dpi/charR18.pcf.gz: :outline=False:scalable=False
/usr/X11R6/lib/X11/fonts/URW/bchr.pfa: :outline=True:scalable=True
/usr/X11R6/lib/X11/fonts/75dpi/charR12.pcf.gz: :outline=False:scalable=False
/usr/X11R6/lib/X11/fonts/75dpi/charR14.pcf.gz: :outline=False:scalable=False
/usr/X11R6/lib/X11/fonts/75dpi/charR24.pcf.gz: :outline=False:scalable=False
mike at nozomi:~$ fc-match  "Bitstream Charter:style=Regular:scalable=true"
c0648bt_.pfb: "Bitstream Charter" "Regular"
mike at nozomi:~$ fc-match  "Bitstream Charter:style=Regular:outline=true"
c0648bt_.pfb: "Bitstream Charter" "Regular"
mike at nozomi:~$ rpm -q fontconfig
fontconfig-2.3.2.20050721-10.3
mike at nozomi:~$

I.e. it seems to be a bug introduced recently in fontconfig.

Anyway, neither the bitmap nor the outline versions have an Euro symbol.

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



More information about the Fontconfig mailing list