X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmodules%2Fswfdump.c;h=92f18023acc1dcc6f8c1728bdf212776580c76aa;hb=f908dd0674bc6cd66e73cd73f9d8073a992f0528;hp=ee187f9defb6f986bd31398cb3a782f47b65a6f0;hpb=ece0945146eafffb2113fc58a8898c0d49ebd2c1;p=swftools.git diff --git a/lib/modules/swfdump.c b/lib/modules/swfdump.c index ee187f9..92f1802 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) @@ -135,6 +153,16 @@ char* swf_TagGetName(TAG*tag) return "ENABLEDEBUGGER"; case ST_REFLEX: return "REFLEX"; + case ST_DOINITACTION: + return "DOINITACTION"; + case ST_DEFINEVIDEOSTREAM: + return "DEFINEVIDEOSTREAM"; + case ST_VIDEOFRAME: + return "VIDEOFRAME"; + case ST_DEFINEFONTINFO2: + return "DEFINEFONTINFO2"; + case ST_MX4: + return "MX4"; } return 0; }