"Nimbus Roman No9 L" medium fonts from tarball at
ftp://ftp.gnome.ru/fonts/urw/release/urw-fonts-1.0.7pre22.tar.bz2 have a
"Medium" weight, in constrast with older version of the package (shipped in RH
or Debian) which have a "Bold" weight..
This causes GTK2 and QT applications to display "Nimbus Roman No9 L Medium" and
"Nimbus Roman No9 L Italic Medium" as Regular fonts.. Strangely, when using xfd
or xterm -fa, these fonts are displayed correctly..
If these are type-1 fonts, can you tell what their style names are? And whether
they indicate 'bold' in the type-1 information?
Created attachment 39 [details]
Nimbus Roman No9 L Medium "broken" font
I'm not a font expert, so I attached one of the fonts which is triggering the
strange fontconfig behaviour..
Changing "Medium" to "Bold" weight using pfaedit fixes the behaviour..
I've taken a look at the URW fonts and I'm not quite sure what to do. Nimbus
Roman No9 L comes in two styles -- Regular and Medium. By name, one would
assume that neither of these were bold, although Regular is traditionally
somewhat lighter than Medium. I suppose the new version is technically correct
in not setting the bold attribute, if in fact the weights are considered
according to the style names. But, the Medium face really does look more like
at least semibold to my eye.
Perhaps in the future, we can consider adding code to fontconfig to try and
guess information from the font style name, but I'm loath to do that at this
point in the release cycle.
Heh. Spoke moments too soon. firstname.lastname@example.org (Gerard Escalante) provided
a patch along with bug #47 that fixed this problem by using the FontInfo
dictionary available in the URW fonts which appears to provide 'regular' and
'medium' weight names.
Reopening : with fontconfig 2.2.0, Medium is displayed as "Bold" (ok) but
Regular is also displayed as "Bold" :((
With current fontconfig CVS, I'm getting distinguishable weight values for all
of the Nimbus Roman No9 L italic files that I have. I think that means this is
fixed in CVS, although may still be broken in the 2.2 branch. I'm going to mark
this as 'fixed'.
/usr/share/fonts/type1/gsfonts/n021024l.pfb: Nimbus Roman No9 L:style=Medium
/home/keithp/.fonts/urw/n021023l.pfb: Nimbus Roman No9 L:style=Regular
/usr/X11R6/lib/X11/fonts/Type1/n021023l.pfb: Nimbus Roman No9 L:style=Regular
/usr/share/fonts/type1/gsfonts/n021023l.pfb: Nimbus Roman No9 L:style=Regular
/usr/X11R6/lib/X11/fonts/Type1/n021024l.pfb: Nimbus Roman No9 L:style=Medium
/home/keithp/.fonts/urw/n021024l.pfb: Nimbus Roman No9 L:style=Medium