Blame firefox-1.5-nopangoxft.patch
|
besfahbo |
e3df142 |
--- mozilla/gfx/src/gtk/mozilla-decoder.cpp.noxft 2004-11-07 18:59:23.000000000 -0500
|
|
besfahbo |
e3df142 |
+++ mozilla/gfx/src/gtk/mozilla-decoder.cpp 2006-08-06 18:24:37.000000000 -0400
|
|
besfahbo |
e3df142 |
@@ -40,10 +40,9 @@
|
|
besfahbo |
e3df142 |
#define PANGO_ENABLE_ENGINE
|
|
besfahbo |
e3df142 |
|
|
besfahbo |
e3df142 |
#include "mozilla-decoder.h"
|
|
besfahbo |
e3df142 |
-#include <pango/pangoxft.h>
|
|
besfahbo |
e3df142 |
#include <pango/pangofc-fontmap.h>
|
|
besfahbo |
e3df142 |
#include <pango/pangofc-font.h>
|
|
besfahbo |
e3df142 |
-#include <gdk/gdkx.h>
|
|
besfahbo |
e3df142 |
+#include <gdk/gdkpango.h>
|
|
besfahbo |
e3df142 |
|
|
besfahbo |
e3df142 |
#include "nsString.h"
|
|
besfahbo |
e3df142 |
#include "nsIPersistentProperties2.h"
|
|
besfahbo |
1100127 |
@@ -145,6 +144,13 @@ mozilla_decoders_init(void)
|
|
besfahbo |
e3df142 |
if (initialized)
|
|
besfahbo |
e3df142 |
return 0;
|
|
besfahbo |
e3df142 |
|
|
besfahbo |
e3df142 |
+ PangoContext* context = gdk_pango_context_get ();
|
|
besfahbo |
e3df142 |
+ PangoFontMap* fontmap = pango_context_get_font_map (context);
|
|
besfahbo |
e3df142 |
+ g_object_unref (context);
|
|
besfahbo |
e3df142 |
+
|
|
besfahbo |
e3df142 |
+ if (!PANGO_IS_FC_FONT_MAP (fontmap))
|
|
besfahbo |
e3df142 |
+ return -1;
|
|
besfahbo |
e3df142 |
+
|
|
besfahbo |
e3df142 |
encoder_hash = g_hash_table_new(g_str_hash, g_str_equal);
|
|
besfahbo |
e3df142 |
cmap_hash = g_hash_table_new(g_str_hash, g_str_equal);
|
|
besfahbo |
e3df142 |
wide_hash = g_hash_table_new(g_str_hash, g_str_equal);
|
|
besfahbo |
1100127 |
@@ -208,7 +214,7 @@ mozilla_decoders_init(void)
|
|
besfahbo |
e3df142 |
}
|
|
besfahbo |
e3df142 |
}
|
|
besfahbo |
e3df142 |
|
|
besfahbo |
e3df142 |
- pango_fc_font_map_add_decoder_find_func(PANGO_FC_FONT_MAP(pango_xft_get_font_map(GDK_DISPLAY(),gdk_x11_get_default_screen())),
|
|
besfahbo |
e3df142 |
+ pango_fc_font_map_add_decoder_find_func(PANGO_FC_FONT_MAP(fontmap),
|
|
besfahbo |
e3df142 |
mozilla_find_decoder,
|
|
besfahbo |
e3df142 |
NULL,
|
|
besfahbo |
e3df142 |
NULL);
|