From: kramm Date: Sun, 16 Apr 2006 13:37:02 +0000 (+0000) Subject: don't switch to custom chartables X-Git-Tag: release-0-8-0~221 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=796482f45946c67804ab2ca5f8b33a020d71a779 don't switch to custom chartables --- diff --git a/lib/gfxfont.c b/lib/gfxfont.c index 1c6bf5f..6ec1a4f 100644 --- a/lib/gfxfont.c +++ b/lib/gfxfont.c @@ -211,11 +211,13 @@ gfxfont_t* gfxfont_load(char*filename, double quality) the encoding is no longer unicode. TODO: find a way to convert the encoding to unicode */ - if(font->max_unicode == 0 && charmap < face->num_charmaps - 1) { + if(font->max_unicode == 0 && charmap < face->num_charmaps-1 && + face->charmaps[charmap+1]->encoding != 0x41444243 /* custom */) + { charmap++; FT_Set_Charmap(face, face->charmaps[charmap]); isunicode = 0; - } else + } else break; }