From 7cd054491ed32224ed0939db4387e7a8f4d600d6 Mon Sep 17 00:00:00 2001 From: kramm Date: Sat, 2 Dec 2006 14:30:32 +0000 Subject: [PATCH] removed old freetype workaround --- lib/gfxfont.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/gfxfont.c b/lib/gfxfont.c index 45a44ca..3aa2a8d 100644 --- a/lib/gfxfont.c +++ b/lib/gfxfont.c @@ -283,12 +283,17 @@ gfxfont_t* gfxfont_load(char*id, char*filename, double quality) hasname = 1; } } - if(has_had_errors && (isunicode && !glyph2unicode[t]) && !hasname) { + +#if 0 // some cantonese pdfs fail to work if this is activated + + if(has_had_errors && (isunicode && !glyph2unicode[t]) && !hasname && t>=256) { /* some freetype versions crash or corrupt memory if we try to load characters (without unicode index or name) above 256 for some fonts. So skip those characters once the first error occured */ omit = 1; } +#endif + if(!omit) { error = FT_Load_Glyph(face, t, FT_LOAD_NO_BITMAP); if(error) { -- 1.7.10.4