diff options
author | Tor Lillqvist <tml@iki.fi> | 2010-03-01 17:53:54 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2010-03-01 18:06:24 +0200 |
commit | 8c3bffeccbd0074e04adf894199393580de88e95 (patch) | |
tree | 5343e75dc02b5be4b46eeb4dbdf6147d238b97e7 /pango/pango-ot-info.c | |
parent | 77f99dd9e17c5051b2b2dcfe6e7746f924e9f71b (diff) | |
download | pango-8c3bffeccbd0074e04adf894199393580de88e95.tar.gz |
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.
Diffstat (limited to 'pango/pango-ot-info.c')
-rw-r--r-- | pango/pango-ot-info.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pango/pango-ot-info.c b/pango/pango-ot-info.c index bd25fcae..aa885a9d 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, |