X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Fswfdump.c;h=3a0c36628b931877d1745bf3b67bc900b4517559;hp=8a4fc8e77125ab6056465cdac7a6ee0a08735b6e;hb=1f835d2148c4661fd97c83de393046a515da9dd8;hpb=ee15a3b589d20a918d60e91a58eea067faf75cfc 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 {