From 57524fc0e25085cd4fe1f63d648133f25977eef1 Mon Sep 17 00:00:00 2001 From: kramm Date: Sat, 20 Oct 2007 17:15:21 +0000 Subject: [PATCH] display unicode in font glyphs --- src/swfdump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/swfdump.c b/src/swfdump.c index c9ca395..1793ba0 100644 --- 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;tnumchars;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; -- 1.7.10.4