From 1f835d2148c4661fd97c83de393046a515da9dd8 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 30 Mar 2003 15:16:22 +0000 Subject: [PATCH] font fix --- src/swfdump.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { -- 1.7.10.4