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 106197 - GIMP's Pango interface doesn't open/display Truetype fonts without Unicode character map
GIMP's Pango interface doesn't open/display Truetype fonts without Unicode ch...
Status: RESOLVED DUPLICATE of bug 101856
Product: GIMP
Classification: Other
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: GIMP Bugs
Daniel Egger
Depends on:
Blocks:
 
 
Reported: 2003-02-15 22:18 UTC by David Caswell
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David Caswell 2003-02-15 22:18:01 UTC
I use a variety of old, bitmap-only TrueType fonts in my site design work.
(Sadly, they seem to have no modern equivalents.) I've recently upgraded my
X version to a 4.3 prerelease that implements Xft2, then rebuilt GTK+ and
Pango with the requisite support, ran ttmkfdir/mkfontdir/fc-cache where
needed, etc..

 So anyway, attempting to view/use one of the aforementioned fonts(Through
preview, text tool or otherwise) returns the following console error in GIMP:

** (gimp-1.3:27103): WARNING **: Unable to load unicode charmap from font
file /usr/X11R6/lib/X11/fonts/TrueType/[fontfilename.ttf]
** (gimp-1.3:27103): WARNING **: Unable to open font file
/usr/X11R6/lib/X11/fonts/TrueType/[fontfilename.ttf] for font [fontname]
[size], falling back to /usr/X11R6/lib/X11/fonts/Type1/UTRG____.pfa

 -Then does what it says-Falls back to displaying the font instead. This
does not occur under any other GTK+2/Pango/Xft2-using app, and with the
help of Alistair Strachan I had found it to be a GIMP-specific issue
localized to the Pango backend.

 From what Alistair's told me, Pango itself has fallback behavior when
dealing with fonts without a unicode character set, dropping to bitmap mode
instead; GIMP currently doesn't use this behavior, instead choosing not to
show the font at all. I have no idea whether support for bitmap fallback is
on the timetable for 1.3, hence the filing of this bug.

 Needless to say, not being able to use half my font collection is a major
loss to my work. >SiGh<

 (Note: I'd provide a sample font, but I'm not sure of the license that
these fonts are under, so I'd have to check their relevant documentation
before posting-Which isn't on hand at the moment. |\ I'll have to get back
to you on that...)
Comment 1 Simon Budig 2003-02-15 23:53:11 UTC
While this is not really a valid solution to your problem I mention it
anyway as a workaround.

You can load the fonts into pfaedit (pfaedit.sf.net) and change the
encoding there (maybe even resaving the font would work). You will
lose hinting information when doing this, but this is only important
for small sizes.
Comment 2 Sven Neumann 2003-02-17 11:59:39 UTC

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