X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=db5a79e1ba20921d443e0d021dc28a6764e5f0dc;hb=2ad35e741fb2e9242e295fd241a97fe3809292f7;hp=377123eebe5658d0082fc380e2be7ba0c06c2e56;hpb=07b215b2a0b442a8f9b832b9ff94755bb6191d48;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 377123e..db5a79e 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -16,6 +16,8 @@ #include #include #include +#include +#include #include "../config.h" #define DEBUG_RFXSWF @@ -73,15 +75,8 @@ typedef struct _TAG // NEVER access a Tag-Struct directly ! U8 * data; U32 memsize; // to minimize realloc() calls - union - { U32 len; // for Set-Access - U32 dataWritePos; - }; - - union - { U32 pos; // for Get-Access - U32 dataReadPos; - }; + U32 len; // for Set-Access + U32 pos; // for Get-Access int frame; // not really up-to-date @@ -363,6 +358,9 @@ int swf_FontSetInfo(TAG * t,SWFFONT * f); int swf_FontExport(int handle,SWFFONT * f); int swf_FontImport(int handle,SWFFONT * * f); +void swf_WriteFont(SWFFONT* font, char* filename, int useDefineFont2); +SWFFONT* swf_ReadFont(char* filename); + void swf_FontFree(SWFFONT * f); U32 swf_TextGetWidth(SWFFONT * font,U8 * s,int scale);