Gimp crashes when I select the font 'newspaper' in the Text Tool font menu. The font in problem is containd in the file /usr/X11R6/lib/X11/fonts/misc/arabic24.pcf.gz which is part of the package XFree86-4.0.3-1. It's likely that the the problem is actually not is the Gimp but in one of the underlyng libraries (gtk/gdk/X11).
*** Bug 32106 has been marked as a duplicate of this bug. ***
This is a 2-byte font.. could gtk+ have problems with this? Owen?
It does work with other 2 byte fonts, though - and the stack of gimp is about 52 k entries deep when it crashes.
Once I get information from Matt about his bug, will make a package with the following: Index: gtkfontsel.c =================================================================== RCS file: /cvs/gnome/gtk+/gtk/gtkfontsel.c,v retrieving revision 1.23.2.8 diff -u -r1.23.2.8 gtkfontsel.c --- gtkfontsel.c 2001/02/22 22:02:24 1.23.2.8 +++ gtkfontsel.c 2001/03/28 21:07:09 @@ -1647,7 +1647,7 @@ gpointer data) { GtkFontSelection *fontsel; - gint new_size; + gdouble new_size; gchar *text; gchar buffer[16]; gint i; @@ -1673,11 +1673,11 @@ gtk_entry_set_text(GTK_ENTRY(fontsel->size_entry), buffer); /* Check if the font size has changed, and return if it hasn't. */ - new_size = atoi(text); + new_size = atof(text); if (fontsel->metric == GTK_FONT_METRIC_POINTS) new_size *= 10; - if (fontsel->size == new_size) + if (fontsel->size == (gint)new_size) return; /* If the size was selected by the user we set the selected_size. */
Gimp does not work correctly with other 2 byte fonts but it does not crash. One thing special about the font "newspaper": It does not contain characters in the 7-bit ASCII range. I think we expect that fonts that are calle "iso-10646-1" are expected to contain at least a minimal subset.
This is a gtk+ bug.
Created attachment 14263 [details] Here's the fix
Well, thanks for the patch, but look up a few lines....
Oh yeah. I must read mail from bugzilla I must read mail from bugzilla I must read mail from bugzilla
After applying the patch, gimp no longer crashes when using the font... but the text in this font is _tiny_.
gtk+-1.2.9-5