{"a", "action"},
{"t", "text"},
{"s", "shapes"},
+{"F", "fonts"},
{"p", "placements"},
{"b", "bbox"},
{"X", "width"},
printf("-a , --action Disassemble action tags\n");
printf("-t , --text Show text fields (like swfstrings).\n");
printf("-s , --shapes Show shape coordinates/styles\n");
+ printf("-F , --fonts Show font information\n");
printf("-p , --placements Show placement information\n");
printf("-b , --bbox Print tag's bounding boxes\n");
printf("-X , --width Prints out a string of the form \"-X width\".\n");
}
else if(tag->id == ST_PLACEOBJECT2 || tag->id == ST_PLACEOBJECT3) {
}
- else if(tag->id == ST_NAMECHARACTER) {
+ else if(tag->id == ST_NAMECHARACTER || tag->id==ST_DEFINEFONTNAME) {
swf_GetU16(tag);
printf(" \"%s\"\n", swf_GetString(tag));
}
else if(tag->id == ST_PLACEOBJECT2 || tag->id == ST_PLACEOBJECT3) {
handlePlaceObject23(tag, myprefix);
}
+ else if(tag->id == ST_DEFINEFONTNAME) {
+ swf_SetTagPos(tag, 0);
+ swf_GetU16(tag); //id
+ swf_GetString(tag); //name
+ char* copyright = swf_GetString(tag);
+ printf("%s%s\n", myprefix, copyright);
+ }
else if(tag->id == ST_DEFINESHAPE ||
tag->id == ST_DEFINESHAPE2 ||
tag->id == ST_DEFINESHAPE3 ||