X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=0291e11877291d97a41e83507a8fd78a7c2165c8;hb=0f52bdfad8816e85fd4d12eb6b76f00aecddf315;hp=55ddf2e98ec329d2a7baa08834058f6711c69e87;hpb=0a7f99eb90063c65ec0c4e223a91549fa240ba30;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 55ddf2e..0291e11 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -345,7 +345,9 @@ SRECT swf_TurnRect(SRECT r, MATRIX* m); #define ST_SCRIPTLIMITS 65 /* version 7- u16 maxrecursedepth, u16 scripttimeoutseconds */ #define ST_SETTABINDEX 66 /* version 7- u16 depth(!), u16 tab order value */ +/* custom tags- only valid for swftools */ #define ST_REFLEX 777 /* to identify generator software */ +#define ST_GLYPHNAMES 778 // Advanced Funtions @@ -502,10 +504,9 @@ typedef struct _SWFFONT char ** glyphnames; } SWFFONT, * LPSWFFONT; -#define MAX_CHAR_PER_FONT 512 // does not support wide characters ! typedef struct _FONTUSAGE -{ U8 code[MAX_CHAR_PER_FONT]; +{ U8* code; } FONTUSAGE, * LPFONTUSAGE; #define ET_HASTEXT 32768 @@ -547,7 +548,7 @@ int swf_FontIsBold(SWFFONT * f); int swf_FontSetID(SWFFONT * f,U16 id); int swf_FontReduce(SWFFONT * f,FONTUSAGE * use); -int swf_FontInitUsage(FONTUSAGE * use); +int swf_FontInitUsage(SWFFONT * f,FONTUSAGE * use); int swf_FontUse(FONTUSAGE * use,U8 * s); int swf_FontSetDefine(TAG * t,SWFFONT * f); @@ -587,6 +588,7 @@ void swf_DrawText(drawer_t*draw, SWFFONT*font, char*text); SWFFONT* swf_LoadTrueTypeFont(char*filename); SWFFONT* swf_LoadT1Font(char*filename); +SWFFONT* swf_LoadFont(char*filename); // swfdump.c