From: kramm Date: Sun, 30 Mar 2003 15:16:22 +0000 (+0000) Subject: font fix X-Git-Tag: release-0-4-4~67 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=1f835d2148c4661fd97c83de393046a515da9dd8 font fix --- diff --git a/src/swfdump.c b/src/swfdump.c index 8a4fc8e..3a0c366 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -250,7 +250,9 @@ void textcallback(int*glyphs, int nr, int fontid) { unsigned char a; if(font>=0) { - if(glyphs[t] >= fonts[font]->numchars) + if(glyphs[t] >= fonts[font]->numchars /*glyph is in range*/ + || !fonts[font]->glyph2ascii /* font has ascii<->glyph mapping */ + ) continue; a = fonts[font]->glyph2ascii[glyphs[t]]; } else {