[Fontconfig] Strange font mixup.

Jonathan Brandmeyer fontconfig@fontconfig.org
24 May 2003 19:01:35 -0400


I am trying to troubleshoot a font mixup on my Debian Sid machine.  I am
having trouble with the "Courier 10 Pitch"  font that is in the
xfonts-scalable package.  The following packages are installed:

XFree86 4.2.1-6
xfonts-scalable 4.2.1-6
Fontconfig 2.2.0-2

For some reason, the regular font is itallic, and the bold itallic font
is just bold, as displayed by the KDE font configuration, GNOME2
font-config and Eclipse's internal font configuration.  Evolution 1.2.4
finds the correct fonts (id'ed as bitstream-courier), but they are not
AA, and it uses a different font selection mechanism.  The itallic and
bold versions are just fine.  I have checked the entries in the cache
files and font.dir files, and nothing strange jumps out.  I've also
verified (using Konqueror's built-in font previewing feature) that the
files actually contain the appropriate fonts.

How can I troubleshoot this problem?  If fontconfig isn't responsible
for the mixup, do you have any ideas what would be?

Thanks,
Jonathan


Fontpath: (from `xset q`)
 /home/jonathan/.gnome2/share/cursor-fonts, (MT)
/usr/lib/X11/fonts/Type1,
/usr/lib/X11/fonts/Speedo,
/usr/lib/X11/fonts/misc,
/usr/lib/X11/fonts/100dpi,
/usr/lib/X11/fonts/75dpi,
/usr/share/fonts/truetype,
/usr/share/fonts/truetype/ttf-bitstream-vera,
/usr/share/fonts/truetype/freefont,
/home/jonathan/.gnome2/share/fonts (MT)

Excerpt from /usr/lib/X11/fonts/Type1/fonts.dir:
c0419bt_.pfb -bitstream-courier-medium-r-normal--0-0-0-0-m-0-iso8859-1
c0582bt_.pfb -bitstream-courier-medium-i-normal--0-0-0-0-m-0-iso8859-1
c0583bt_.pfb -bitstream-courier-bold-r-normal--0-0-0-0-m-0-iso8859-1
c0611bt_.pfb -bitstream-courier-bold-i-normal--0-0-0-0-m-0-iso8859-1

Excerpt from/usr/lib/X11/fonts/Type1/fonts.cache-1 (charset= and lang=
have been snipped):
"c0419bt_.pfb" 0 "Courier 10
Pitch:style=Regular:slant=0:weight=80:spacing=100:foundry=bitsteam:index=0:outline=True:scalable=True::fontversion=0"
"c0582bt_.pfb" 0 "Courier 10
Pitch:style=Italic:slant=0:weight=80:foundry=bitsteam:index=0:outline=True:scalable=True:
"c0583bt_.pfb" 0 "Courier 10
Pitch:style=Bold:slant=0:weight=200:spacing=100:foundry=bitsteam:index=0:outline=True:scalable=True:
"c0611bt_.pfb" 0 "Courier 10 Pitch:style=Bold
Italic:slant=0:weight=200:spacing=100:foundry=bitsteam:index=0:outline=True:scalable=True: 

/usr/lib/X11/fonts/Type1/fonts.scale and fonts.alias do not contain
referances to these fonts.