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