display unicode in font glyphs
authorkramm <kramm>
Sat, 20 Oct 2007 17:15:21 +0000 (17:15 +0000)
committerkramm <kramm>
Sat, 20 Oct 2007 17:15:21 +0000 (17:15 +0000)
src/swfdump.c

index c9ca395..1793ba0 100644 (file)
@@ -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("%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;