Bug 609326 - Complex script shaping failed in the FT2 backend on Windows
authorTor Lillqvist <tml@iki.fi>
Mon, 1 Mar 2010 15:53:54 +0000 (17:53 +0200)
committerTor Lillqvist <tml@iki.fi>
Mon, 1 Mar 2010 16:06:24 +0000 (18:06 +0200)
I am not sure whether the root cause is a bug in FreeType, or the way
Pango uses FreeType, or some more exotic mechanism. Anyway, add a
simple workaround.

pango/pango-ot-info.c

index bd25fca..aa885a9 100644 (file)
@@ -144,7 +144,13 @@ pango_ot_info_get (FT_Face face)
 
       info->face = face;
 
-      if (face->stream->base != NULL) {
+      if (
+#ifdef G_OS_WIN32
+         FALSE &&              /* Work around possible bug in FreeType, FT_StreamRec::base
+                                * can be non-NULL even if the stream is not memory-based.
+                                */
+#endif
+         face->stream->base != NULL) {
        hb_blob_t *blob;
 
        blob = hb_blob_create ((const char *) face->stream->base,