#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
+#include <fcntl.h>
#include "../config.h"
#define DEBUG_RFXSWF
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
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);