X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fgfxfont.c;h=6ec1a4fc865af8e2f885ce0c1d7928a2c137c98b;hb=e8aea812fa749bafe738f83c8ab76a33a00667a7;hp=1c6bf5f4fbc1866eb368f109ba303436dc5fd17d;hpb=b8c1c46e31ee01ac4757a95611e26ce72336b5f0;p=swftools.git 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; }