added DEFINEMOVIE to define tag list.
[swftools.git] / lib / modules / swfdump.c
index f2bddcc..af6cdfc 100644 (file)
@@ -37,6 +37,28 @@ 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("biggest mapped ascii value: %d\n", font->maxascii);
+    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");
+    }
+    printf("style: %d\n", font->style);
+    printf("encoding: %d\n", font->encoding);
+    printf("language: %d\n", font->language);
+}
+
 char* swf_TagGetName(TAG*tag)
 {
     switch(tag->id)
@@ -127,8 +149,28 @@ char* swf_TagGetName(TAG*tag)
             return "GENERATOR3";
         case ST_EXTERNALFONT:
             return "EXTERNALFONT";
+       case ST_EXPORTASSETS:
+           return "EXPORTASSETS";
+       case ST_IMPORTASSETS:
+           return "IMPORTASSETS";
+       case ST_ENABLEDEBUGGER:
+           return "ENABLEDEBUGGER";
         case ST_REFLEX:
             return "REFLEX";
+        case ST_DOINITACTION:
+            return "DOINITACTION";
+        case ST_DEFINEMOVIE:
+            return "DEFINEMOVIE";
+        case ST_DEFINEVIDEOSTREAM:
+            return "DEFINEVIDEOSTREAM";
+        case ST_VIDEOFRAME:
+            return "VIDEOFRAME";
+        case ST_DEFINEFONTINFO2:
+            return "DEFINEFONTINFO2";
+        case ST_FREEALL:
+            return "FREEALL";
+        case ST_MX4:
+            return "MX4";
     }
     return 0;
 }