added more information in comments
authorkramm <kramm>
Sun, 9 Sep 2007 17:55:01 +0000 (17:55 +0000)
committerkramm <kramm>
Sun, 9 Sep 2007 17:55:01 +0000 (17:55 +0000)
src/swfstrings.c

index 3a9338d..86d8aed 100644 (file)
@@ -67,12 +67,14 @@ void fontcallback(void*self,U16 id,U8 * name)
   TAG* t;
   
   swf_FontExtract(&swf,id,&font);
-  printf("#< %s %s %s>\n",name,swf_FontIsBold(font)?"bold":"",swf_FontIsItalic(font)?"italic":"");
+  printf("#<font %d \"%s\"%s%s>\n",id, name,swf_FontIsBold(font)?" bold":"",swf_FontIsItalic(font)?" italic":"");
 
   t = swf.firstTag;
 
   while (t)
-  { swf_TextPrintDefineText(t,font);
+  { 
+    if(swf_isTextTag(t))
+       swf_TextPrintDefineText(t,font);
     t = swf_NextTag(t);
   }