git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c32b62c
)
font loading is now done via swf_LoadFont()
author
kramm
<kramm>
Sun, 1 Feb 2004 22:26:55 +0000
(22:26 +0000)
committer
kramm
<kramm>
Sun, 1 Feb 2004 22:26:55 +0000
(22:26 +0000)
src/swfc.c
patch
|
blob
|
history
diff --git
a/src/swfc.c
b/src/swfc.c
index
e189cec
..
f44ea80
100644
(file)
--- a/
src/swfc.c
+++ b/
src/swfc.c
@@
-814,7
+814,9
@@
void s_font(char*name, char*filename)
int f;
SWF swf;
SWFFONT* font;
int f;
SWF swf;
SWFFONT* font;
- f = open(filename,O_RDONLY|O_BINARY);
+ font = swf_LoadFont(filename);
+
+ /*f = open(filename,O_RDONLY|O_BINARY);
if (f<0) {
warning("Couldn't open file \"%s\": %s", filename, strerror(errno));
font = (SWFFONT*)malloc(sizeof(SWFFONT));
if (f<0) {
warning("Couldn't open file \"%s\": %s", filename, strerror(errno));
font = (SWFFONT*)malloc(sizeof(SWFFONT));
@@
-830,7
+832,7
@@
void s_font(char*name, char*filename)
close(f);
if (font==0) {
syntaxerror("File \"%s\" isn't a valid rfxswf font file", filename);
close(f);
if (font==0) {
syntaxerror("File \"%s\" isn't a valid rfxswf font file", filename);
- }
+ }*/
if(0)
{
if(0)
{