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:
eef24f6
)
changed to new font structure.
author
kramm
<kramm>
Sun, 21 Apr 2002 15:02:54 +0000
(15:02 +0000)
committer
kramm
<kramm>
Sun, 21 Apr 2002 15:02:54 +0000
(15:02 +0000)
lib/example/makefonts.cc
patch
|
blob
|
history
diff --git
a/lib/example/makefonts.cc
b/lib/example/makefonts.cc
index
69243db
..
370a81a
100644
(file)
--- a/
lib/example/makefonts.cc
+++ b/
lib/example/makefonts.cc
@@
-82,7
+82,9
@@
SWFFONT * t1font2swffont(int i)
wfont->maxascii = encodingsize;
wfont->numchars = num;
wfont->maxascii = encodingsize;
wfont->numchars = num;
- wfont->flags = /*layout*/0x80 + /*bold*/0?1:0 + /*italic*/(angle>0.05)?2:0;
+
+ wfont->style = (/*bold*/0?FONT_STYLE_BOLD:0) + (angle>0.05?FONT_STYLE_ITALIC:0);
+
wfont->glyph = (SWFGLYPH*)malloc(num*sizeof(SWFGLYPH));
memset(wfont->glyph, 0, num*sizeof(SWFGLYPH));
wfont->glyph2ascii = (U16*)malloc(num*sizeof(U16));
wfont->glyph = (SWFGLYPH*)malloc(num*sizeof(SWFGLYPH));
memset(wfont->glyph, 0, num*sizeof(SWFGLYPH));
wfont->glyph2ascii = (U16*)malloc(num*sizeof(U16));