[Fontconfig] Re: Bug with fc-match

Mike FABIAN mfabian at suse.de
Fri Feb 10 05:17:00 PST 2006

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

> Mike FABIAN wrote:
>> 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:~$
> Hmm.  I wonder why I only get one font in fc-list on two different systems:
> plam at mp:~/hacks/fontconfig$ fc-list/fc-list  "Bitstream
> Charter:style=Regular" file scalable outline
> /usr/X11R6/lib/X11/fonts/Type1/c0648bt_.pfb: :outline=True:scalable=True
> Ah, charR12.pcf.gz is called 'Charter' on my system:

Ah, yes. sorry. That difference in the names of the bitmap fonts is
caused by a patch I apply to the freetype2 package in SuSE Linux.

My patch prepends the foundry name plus a space to the family name in
case of bitmap fonts. Without that, there are many fonts just called
"Fixed" which look completely different and which have nothing to do
with each other and when selecting "Fixed" in KDE or Gnome one gets
results which appear rather random, the style changes often if one
changes the size and one cannot select some fonts at all.

With my patch, the fonts are called "Sony Fixed", "Misc Fixed", "ETL
Fixed", ...

Then they can be easily distinguished and the desired fonts can
be selected without problems in KDE and Gnome.

> plam at mp:/etc/fonts$ fc-list  "Charter:style=Regular" file scalable
> outline /usr/X11R6/lib/X11/fonts/100dpi/charR18.pcf.gz:
> :outline=False:scalable=False
> /usr/X11R6/lib/X11/fonts/100dpi/charR08.pcf.gz:
> :outline=False:scalable=False
> /usr/X11R6/lib/X11/fonts/100dpi/charR10.pcf.gz:
> :outline=False:scalable=False
> /usr/X11R6/lib/X11/fonts/100dpi/charR12.pcf.gz:
> :outline=False:scalable=False
> /usr/X11R6/lib/X11/fonts/100dpi/charR14.pcf.gz:
> :outline=False:scalable=False
> /usr/X11R6/lib/X11/fonts/100dpi/charR24.pcf.gz:
> :outline=False:scalable=False
> I'll take a look at it.

Thank you.

Mike FABIAN   <mfabian at suse.de>   http://www.suse.de/~mfabian

More information about the Fontconfig mailing list