GNOME Bugzilla – Bug 169314
Text tool cannot distinguish between certain fonts
Last modified: 2006-02-20 21:19:08 UTC
Please describe the problem: The text tool cannot distinguish between certain fonts (commercial Type 1 fonts) and cannot select some variants. For example, for the Adobe "Apollo" family, fc-list returns Apollo MT:style=Expert Apollo MT:style=Italic Apollo MT:style=Italic Expert Apollo MT:style=Italic Oldstyle Figures Apollo MT:style=Regular Apollo MT:style=Semi Bold Apollo MT:style=Semi Bold Expert Apollo MT:style=Semi Bold Oldstyle Figures Apollo MT:style=Small Caps & Oldstyle Figures (using fontconfig 2.2.3). Inside gimp, the text tool shows Apollo MT Apollo MT Apollo MT Apollo MT Italic Apollo MT Italic Apollo MT Italic Apollo MT Semi-Bold Apollo MT Semi-Bold Apollo MT Semi-Bold Selecting any of the "Apollo MT" entries, for example, gives the regular "Apollo MT" (never the "Expert" or the "Oldstyle figures" variants). Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information: This might be difficult to reproduce because reproducing this requires commercial fonts.
First, upgrade to fontconfig 2.3.0. Then run: fc-list 'Apollo MT' : family style slant weight width and give us the output.
Just upgraded to fontconfig 2.3.0. "fc-list 'Apollo MT'" reports Apollo MT:style=Italic Oldstyle Figures Apollo MT:style=Semi Bold Expert Apollo MT:style=Small Caps & Oldstyle Figures Apollo MT:style=Semi Bold Apollo MT:style=Expert Apollo MT:style=Italic Apollo MT:style=Semi Bold Oldstyle Figures Apollo MT:style=Regular Apollo MT:style=Italic Expert
Sorry, ran the wrong command. The correct output is below: Apollo MT:style=Italic Oldstyle Figures:slant=100:weight=80:width=100 Apollo MT:style=Semi Bold Expert:slant=0:weight=180:width=100 Apollo MT:style=Small Caps & Oldstyle Figures:slant=0:weight=80:width=100 Apollo MT:style=Semi Bold:slant=0:weight=180:width=100 Apollo MT:style=Italic:slant=100:weight=80:width=100 Apollo MT:style=Expert:slant=0:weight=80:width=100 Apollo MT:style=Semi Bold Oldstyle Figures:slant=0:weight=180:width=100 Apollo MT:style=Regular:slant=0:weight=80:width=100 Apollo MT:style=Italic Expert:slant=100:weight=80:width=100
Ok, there's not much that can be done currently, since the fonts don't differentiate themselves enough for pango to generate unique font descriptions for them. As a workaround, you could edit the fonts and make "Oldstyle Figures" and "Expert" part of the family name (Type1 fonts have easily modified metadata).
This should be reassigned to Pango, shouldn't it?
Yeah, reassigning.
*** This bug has been marked as a duplicate of 95043 ***