added function swf_isFontTag().
authorkramm <kramm>
Sat, 25 Jun 2005 13:42:43 +0000 (13:42 +0000)
committerkramm <kramm>
Sat, 25 Jun 2005 13:42:43 +0000 (13:42 +0000)
lib/modules/swftools.c
lib/rfxswf.h

index 163d855..58962e1 100644 (file)
@@ -920,6 +920,15 @@ U8 swf_isTextTag(TAG*tag)
     return 0;
 }
 
+U8 swf_isFontTag(TAG*tag)
+{
+    if(tag->id == ST_DEFINEFONT ||
+       tag->id == ST_DEFINEFONT2 ||
+       tag->id == ST_DEFINEFONTINFO)
+        return 1;
+    return 0;
+}
+
 U8  swf_isImageTag(TAG*tag)
 {
     if(tag->id == ST_DEFINEBITSJPEG || 
index 31050dd..21a6068 100644 (file)
@@ -754,6 +754,8 @@ U8 swf_isPseudoDefiningTag(TAG * t);
 U8 swf_isAllowedSpriteTag(TAG * t);
 U8 swf_isImageTag(TAG*tag);
 U8 swf_isShapeTag(TAG*tag);
+U8 swf_isTextTag(TAG*tag);
+U8 swf_isFontTag(TAG*tag);
 U8 swf_isPlaceTag(TAG*tag);
 
 U16 swf_GetDefineID(TAG * t);