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:
75b8553
)
upgraded exportfont to flash version 9
author
kramm
<kramm>
Tue, 6 Jan 2009 21:25:54 +0000
(21:25 +0000)
committer
kramm
<kramm>
Tue, 6 Jan 2009 21:25:54 +0000
(21:25 +0000)
lib/modules/swftext.c
patch
|
blob
|
history
diff --git
a/lib/modules/swftext.c
b/lib/modules/swftext.c
index
e62737d
..
d2b8989
100644
(file)
--- a/
lib/modules/swftext.c
+++ b/
lib/modules/swftext.c
@@
-1365,7
+1365,7
@@
void swf_WriteFont(SWFFONT * font, char *filename)
memset(&swf, 0x00, sizeof(SWF));
memset(&swf, 0x00, sizeof(SWF));
- swf.fileVersion = 4;
+ swf.fileVersion = 9;
swf.frameRate = 0x4000;
/* if we use DefineFont1 to store the characters,
swf.frameRate = 0x4000;
/* if we use DefineFont1 to store the characters,
@@
-1390,6
+1390,17
@@
void swf_WriteFont(SWFFONT * font, char *filename)
t = swf_InsertTag(t, ST_DEFINEFONT2);
swf_FontSetDefine2(t, font);
}
t = swf_InsertTag(t, ST_DEFINEFONT2);
swf_FontSetDefine2(t, font);
}
+ if(font->name) {
+ t = swf_InsertTag(t, ST_NAMECHARACTER);
+ swf_SetU16(t, WRITEFONTID);
+ swf_SetString(t, font->name);
+ t = swf_InsertTag(t, ST_EXPORTASSETS);
+ swf_SetU16(t, 1);
+ swf_SetU16(t, WRITEFONTID);
+ swf_SetString(t, font->name);
+
+ t = swf_AddAS3FontDefine(t, WRITEFONTID, font->name);
+ }
if (storeGlyphNames && font->glyphnames) {
int c;
if (storeGlyphNames && font->glyphnames) {
int c;