gtkxft breaks mozilla-0.9.9
Brought to you by:
jp30
See mozilla bugs
http://bugzilla.mozilla.org/show_bug.cgi?id=130356
and
http://bugzilla.mozilla.org/show_bug.cgi?id=130366
both of which I had to mark INVALID because they only
occur w/ gdkxft enabled. Note that the debian build of
mozilla-0.9.8 works fine for me (w/o any patches) with
gdkxft (well, the helvetica font is wacked when it's
used in the toolbar widgets, but everything looks great
in the main browser window).
Logged In: YES
user_id=41611
This is fixed with the following patch:
--- mozilla/gfx/src/gtk/nsRenderingContextGTK.cpp~ Wed Mar 13 19:13:26 2002+++ mozilla/gfx/src/gtk/nsRenderingContextGTK.cpp Wed Mar 13 19:14:45 2002@@
-2053,6 +2053,9 @@
const gchar *text,
gint
text_length)
{
+#define MOZ_DRAW_TEXT_WITH_GDK
+#ifndef MOZ_DRAW_TEXT_WITH_GDK
+
#ifdef MOZ_WIDGET_GTK
GdkWindowPrivate *drawable_private;
GdkFontPrivate *font_private;
@@ -2133,6 +2136,10 @@
}
else
g_error("undefined font type\n");
+
+#else /* MOZ_DRAW_TEXT_WITH_GDK */
+ gdk_draw_text(drawable, font, gc, x, y, text,
MIN(text_length, 32768));
+#endif /* MOZ_DRAW_TEXT_WITH_GDK */
}