From: Tor Lillqvist Date: Mon, 1 Mar 2010 15:53:54 +0000 (+0200) Subject: Bug 609326 - Complex script shaping failed in the FT2 backend on Windows X-Git-Tag: 1.28.0~18 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c3bffeccbd0074e04adf894199393580de88e95;p=platform%2Fupstream%2Fpango.git Bug 609326 - Complex script shaping failed in the FT2 backend on Windows 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. --- diff --git a/pango/pango-ot-info.c b/pango/pango-ot-info.c index bd25fca..aa885a9 100644 --- a/pango/pango-ot-info.c +++ b/pango/pango-ot-info.c @@ -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,