X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fmodules%2Fswfdump.c;h=ffed0f99868689b16c88eb5af84187df638de9d4;hb=06c52df74a95a50269715678452f57eb316140fa;hp=ee187f9defb6f986bd31398cb3a782f47b65a6f0;hpb=ece0945146eafffb2113fc58a8898c0d49ebd2c1;p=swftools.git diff --git a/lib/modules/swfdump.c b/lib/modules/swfdump.c index ee187f9..ffed0f9 100644 --- a/lib/modules/swfdump.c +++ b/lib/modules/swfdump.c @@ -37,6 +37,24 @@ void swf_DumpTag(FILE * f,TAG * t) fprintf(f,"\n"); } +void swf_DumpFont(SWFFONT * font) +{ + printf("ID: %d\n", font->id); + printf("Version: %d\n", font->version); + printf("name: %s\n", font->name); + printf("characters: %d\n", font->numchars); + printf("layout: %s\n", font->layout?"yes":"no"); + if(font->layout) + { + printf(" ascent:%d\n", font->layout->ascent); + printf(" descent:%d\n", font->layout->descent); + printf(" leading:%d\n", font->layout->leading); + printf(" bounds: (not shown)\n"); + printf(" kerning records:%d\n", font->layout->kerningcount); + printf(" kerning records: (not shown)\n"); + } +} + char* swf_TagGetName(TAG*tag) { switch(tag->id)