git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Brought up to date
[swftools.git]
/
lib
/
rfxswf.h
diff --git
a/lib/rfxswf.h
b/lib/rfxswf.h
index
377123e
..
db5a79e
100644
(file)
--- a/
lib/rfxswf.h
+++ b/
lib/rfxswf.h
@@
-16,6
+16,8
@@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
+#include <fcntl.h>
#include "../config.h"
#define DEBUG_RFXSWF
#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
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 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);
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);
void swf_FontFree(SWFFONT * f);
U32 swf_TextGetWidth(SWFFONT * font,U8 * s,int scale);