After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 169314 - Text tool cannot distinguish between certain fonts
Text tool cannot distinguish between certain fonts
Status: RESOLVED DUPLICATE of bug 95043
Product: pango
Classification: Platform
Component: general
1.8.x
Other All
: Normal minor
: ---
Assigned To: pango-maint
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-03-05 18:36 UTC by Ambrose LI
Modified: 2006-02-20 21:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ambrose LI 2005-03-05 18:36:41 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.
Comment 1 Manish Singh 2005-03-05 19:09:09 UTC
First, upgrade to fontconfig 2.3.0. Then run:

fc-list 'Apollo MT' : family style slant weight width

and give us the output.
Comment 2 Ambrose LI 2005-03-05 19:22:43 UTC
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
Comment 3 Ambrose LI 2005-03-05 19:23:36 UTC
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
Comment 4 Manish Singh 2005-03-05 19:58:25 UTC
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).
Comment 5 Sven Neumann 2005-03-07 20:11:34 UTC
This should be reassigned to Pango, shouldn't it?
Comment 6 Manish Singh 2005-03-07 21:42:46 UTC
Yeah, reassigning.
Comment 7 Owen Taylor 2005-03-07 22:01:46 UTC

*** This bug has been marked as a duplicate of 95043 ***