git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee15a3b
)
font fix
author
kramm
<kramm>
Sun, 30 Mar 2003 15:16:22 +0000
(15:16 +0000)
committer
kramm
<kramm>
Sun, 30 Mar 2003 15:16:22 +0000
(15:16 +0000)
src/swfdump.c
patch
|
blob
|
history
diff --git
a/src/swfdump.c
b/src/swfdump.c
index
8a4fc8e
..
3a0c366
100644
(file)
--- 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 {