GNOME Bugzilla – Bug 111471
Gimp exits when no fonts found
Last modified: 2003-11-02 15:25:31 UTC
G'Day, I just built gimp (obviously not correctly), and it all runs (and builds) just fine until I try to use the text tool, then when you start to type text, you get: No fonts found; this probably means that the fontconfig library is not correctly configured. You may need to edit the fonts.conf configuration file. More information about fontconfig can be found in the fontconfig(3) manual page and on http://fontconfig.org pgimeno said he also experienced it, and suspects that it's actually a pango bug. I assume I still have something wrong with fontconfig, but still, it shouldn't exit. line 599 of pango/pangofc-fontmap.cI is the culprit. (pango-1.2.1) thanks, Cameron
A similar problem was reported for Script-Fu in bug #110227. Another case in which Pango causes the whole GIMP to exit was reported in bug #107434 (marked as a duplicate of bug #101856, which was reassigned to Pango). I agree that it is definitely wrong to exit the whole GIMP if no fonts can be found. Although this problem is related to Pango, let's keep this bug report open as a GIMP bug, focused on the fact that the whole application should not exit even if the underlying toolkit cannot use some (or any) fonts.
That's not a bug. You need to have at least one font configured or nothing will work. Please check your fontconfig setup. Does fc-list list any fonts at all?
BTW, it's not the application that exits here; Pango calls exit().
After I ran fc-cache -v (thanks to yosh). It worked just fine. But I imagine many people would use the gimp without using the text tool (perhaps other tools would break too?)
At least on X11 people are most probably using fontconfig for the desktop font rendering anyway. So they need a reasonable font setup. If Yosh finally commits the code related to bug #110798, we could have a chance to workaround this and disable everything font-related in case fontconfig is not setup correctly.
I was running it on my server and exporting to my laptop. That could explain why I didn't have the same problem on the laptop. thanks :-)
Changes at the request of Dave Neary on the developer mailing list. I am changing many of the bugzilla reports that have not specified a target milestone to Future milestone. Hope that is acceptable.
Changing milestone on a bunch of bugs to 2.0 - none of these could be considered a blocker for a pre-release, IMHO. Many of these have patches or someone working on them, but they're not urgent. Dave.
Yosh seems to already have committed code related to bug #110798 - does that code fix this bug as well?
Yosh, what does latest GIMP do when the user has no fonts configured? I am tempted to resolve this bug as a duplicate of the "ship a font with Pango to deal with impossibly broken configs" bug (#86150).
*** This bug has been marked as a duplicate of 86150 ***