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:
427ac5a
)
display unicode in font glyphs
author
kramm
<kramm>
Sat, 20 Oct 2007 17:15:21 +0000
(17:15 +0000)
committer
kramm
<kramm>
Sat, 20 Oct 2007 17:15:21 +0000
(17:15 +0000)
src/swfdump.c
patch
|
blob
|
history
diff --git
a/src/swfdump.c
b/src/swfdump.c
index
c9ca395
..
1793ba0
100644
(file)
--- a/
src/swfdump.c
+++ b/
src/swfdump.c
@@
-286,7
+286,8
@@
void dumpFont(TAG*tag, char*prefix)
printf("%slanguage: %02x\n", prefix,font->language);
int t;
for(t=0;t<font->numchars;t++) {
printf("%slanguage: %02x\n", prefix,font->language);
int t;
for(t=0;t<font->numchars;t++) {
- printf("%s== Glyph %d: advance=%d ==\n", prefix, t, font->glyph[t].advance);
+ int u = font->glyph2ascii?font->glyph2ascii[t]:-1;
+ printf("%s== Glyph %d: advance=%d encoding=%d ==\n", prefix, t, font->glyph[t].advance, u);
SHAPE2* shape = swf_ShapeToShape2(font->glyph[t].shape);
SHAPELINE*line = shape->lines;
SHAPE2* shape = swf_ShapeToShape2(font->glyph[t].shape);
SHAPELINE*line = shape->lines;