GNOME Bugzilla – 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
Last modified: 2016-05-02 13:21:25 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.
This is some advanced OTF feature, right?
(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.
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.
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.
That one should more accurately reflect the issue.
I think we have an old bug about this, but it got probably reassigned to pango?
(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
The symptoms match bug 95043.
I would concur. I didn't spot that bug before submitting this one, but that does look like the same problem.
Thanks for checking. *** This bug has been marked as a duplicate of bug 95043 ***