From b393b0a6f5fc9266369a4913f7453ef347f2a7ad Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 20 Feb 2007 18:51:57 +0000 Subject: [PATCH] added csmtextsettings --- src/swfdump.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/swfdump.c b/src/swfdump.c index 7f020b6..eb6b32b 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -1039,7 +1039,7 @@ int main (int argc,char ** argv) printf(" at depth %04d", swf_GetDepth(tag)); - if(tag->data[1]&4) + if(tag->id == ST_PLACEOBJECT3 && tag->data[1]&4) printf(" as bitmap"); swf_SetTagPos(tag, 0); @@ -1135,6 +1135,26 @@ int main (int argc,char ** argv) printf("\n"); } } + else if(tag->id == ST_CSMTEXTSETTINGS) { + U16 id = swf_GetU16(tag); + U8 flags = swf_GetU8(tag); + printf(" ("); + if(flags&0x40) { + printf("flashtype,"); + } + switch(((flags>>3)&7)) { + case 0:printf("no grid,");break; + case 1:printf("pixel grid,");break; + case 2:printf("subpixel grid,");break; + case 3:printf("unknown grid,");break; + } + if(flags&0x87) + printf("unknown[%08x],", flags); + float thickness = swf_GetFixed(tag); + float sharpness = swf_GetFixed(tag); + printf("s=%.2f,t=%.2f)\n", thickness, sharpness); + swf_GetU8(tag); + } else if(tag->id == ST_DEFINEBITSLOSSLESS || tag->id == ST_DEFINEBITSLOSSLESS2) { handleDefineBits(tag); -- 1.7.10.4