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 760686 - Multiple different font faces result in multiple, but incorrectly named and indistinguishable entries in GIMP's font list and all of them behave like the first of them
Multiple different font faces result in multiple, but incorrectly named and i...
Status: RESOLVED DUPLICATE of bug 95043
Product: GIMP
Classification: Other
Component: General
unspecified
Other Mac OS
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2016-01-15 20:03 UTC by Todd Showalter
Modified: 2016-05-02 13:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A font that illustrates the problem. (61.54 KB, application/zip)
2016-01-15 20:03 UTC, Todd Showalter
Details

Description Todd Showalter 2016-01-15 20:03:58 UTC
Created attachment 319146 [details]
A font that illustrates the problem.

Fonts with multiple faces seem to be handled incorrectly, at least on osx. This is happening with many fonts, but one example is Telegrama:

http://www.yoworks.com/yofonts/free.html

http://www.yoworks.com/telegrama/index.html

The font has four faces; two "raw", which look pixellated, and two "render" which are smoothed versions of the raw faces.  In gimp, I get four entries for Telegrama in the text tool, and all four are the "raw" version.  The "render" version doesn't appear in gimp.

The font is correctly installed; it works in other programs.

Conversely, there are many fonts on my system which gimp handles incorrectly in this manner, including several system fonts.  It's particularly noticeable in cases where a font has variant faces, like an outline face or an all-caps face.

I have seen this problem on various versions of gimp since at least 2.6, I believe; I'm currently running 2.8.16. I'm currently running the latest release osx (10.11.2), but I've seen the problem on earlier OS versions as well.
Comment 1 Michael Schumacher 2016-01-15 20:09:55 UTC
This is some advanced OTF feature, right?
Comment 2 Todd Showalter 2016-01-15 20:19:50 UTC
(In reply to Michael Schumacher from comment #1)

> This is some advanced OTF feature, right?

I don't believe so?  If you check the font I attached, it has four .otf files in it:

- telegrama_raw.otf
- telegrama_raw_osn.otf
- telegrama_render.otf
- telegrama_render_osn.otf

I've got all four installed, and I get four entries in the text tool's font chooser, but they're all for the raw version. They all display as the raw version, and show the raw version in their rendering of the font name.

If it was just an advanced OTF feature, I wouldn't expect it to happen across files.  If I had to guess (and yeah, I'm a programmer, I know how much people love uninformed guesses from testers... :P ) I'd say it was something like all the fonts were sharing the same identifier somehow, and whatever is drawing them is just picking the first match.
Comment 3 Todd Showalter 2016-01-21 21:33:53 UTC
With the above font, I've now tried removing the "raw" version from the OS.  Doing that makes the "render" version show up in gimp. So it's definitely something in gimp's handling of the system font list.
Comment 4 Todd Showalter 2016-03-29 12:42:16 UTC
I think the new summary is misleading.

The problem is, let's say I have the example font above. It has four variations of the Telegrama font, in four files.  I install it, and in most things, I have those four variations:

Telegrama Raw
Telegrama Raw OSN
Telegrama Render
Telegrama Render OSN

In GIMP, the font dialog has:

Telegrama
Telegrama
Telegrama
Telegrama

All of which behave like Telegrama Raw within GIMP. If I remove Telegrama Raw from the OS font collection, GIMP now shows:

Telegrama
Telegrama
Telegrama

All of which now behave like Telegrama Raw OSN.  If I remove that,

Telegrama
Telegrama

Which both now behave like Telegrama Render.

So yes, technically it is a matter of some faces not showing up until others are removed. But more specifically, it's that only one variant of any given face is ever available, and that variant is duplicated over all the others.
Comment 5 Michael Schumacher 2016-03-29 13:11:46 UTC
That one should more accurately reflect the issue.
Comment 6 Michael Natterer 2016-03-29 13:42:07 UTC
I think we have an old bug about this, but it got probably reassigned
to pango?
Comment 7 Massimo 2016-05-02 10:38:47 UTC
(In reply to Michael Natterer from comment #6)
> I think we have an old bug about this, but it got probably reassigned
> to pango?

I think it is bug #169314 (which is a duplicate of #95043)

After unzipping the zip attached to this bug report in
~/.config/GIMP/2.9/fonts, that is a dir known to fontconfig

[massimo@laptop fonts]$ fc-list Telegrama
/home/massimo/.config/GIMP/2.9/fonts/telegrama_render.otf: Telegrama:style=Render
/home/massimo/.config/GIMP/2.9/fonts/telegrama_raw.otf: Telegrama:style=Raw
/home/massimo/.config/GIMP/2.9/fonts/telegrama_render_osn.otf: Telegrama:style=Render OsN,Render Old-styled Numerals
/home/massimo/.config/GIMP/2.9/fonts/telegrama_raw_osn.otf: Telegrama:style=Raw OsN,Raw Old-styled Numerals
Comment 8 Michael Schumacher 2016-05-02 11:51:13 UTC
The symptoms match bug 95043.
Comment 9 Todd Showalter 2016-05-02 12:32:50 UTC
I would concur.  I didn't spot that bug before submitting this one, but that does look like the same problem.
Comment 10 Michael Natterer 2016-05-02 13:21:25 UTC
Thanks for checking.

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