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:
202babd
)
added argument to initUsage.
author
kramm
<kramm>
Sun, 16 May 2004 21:10:59 +0000
(21:10 +0000)
committer
kramm
<kramm>
Sun, 16 May 2004 21:10:59 +0000
(21:10 +0000)
lib/example/glyphshape.c
patch
|
blob
|
history
lib/example/text.c
patch
|
blob
|
history
diff --git
a/lib/example/glyphshape.c
b/lib/example/glyphshape.c
index
6d9f2f2
..
28f475d
100644
(file)
--- a/
lib/example/glyphshape.c
+++ b/
lib/example/glyphshape.c
@@
-90,7
+90,7
@@
int main(int argc, char ** argv)
FONTUSAGE use;
\r
SWFFONT * font = Font_Demo_Font(ID_FONT); // change font name here
\r
\r
FONTUSAGE use;
\r
SWFFONT * font = Font_Demo_Font(ID_FONT); // change font name here
\r
\r
- swf_FontInitUsage(&use);
\r
+ swf_FontInitUsage(font,&use);
\r
swf_FontUse(&use,s);
\r
swf_FontReduce(font,&use); // make sure that gid's point to the specific glyphs
\r
\r
swf_FontUse(&use,s);
\r
swf_FontReduce(font,&use); // make sure that gid's point to the specific glyphs
\r
\r
diff --git
a/lib/example/text.c
b/lib/example/text.c
index
9a18985
..
c346251
100644
(file)
--- a/
lib/example/text.c
+++ b/
lib/example/text.c
@@
-75,7
+75,7
@@
int main(int argc, char ** argv)
if(definefont2)
swf_FontAddLayout(font,0,0,0);
if(definefont2)
swf_FontAddLayout(font,0,0,0);
- swf_FontInitUsage(&use);
+ swf_FontInitUsage(font,&use);
swf_FontUse(&use,BANNER_TEXT); // SWF reduces font information to the used glyphs
swf_FontReduce(font,&use);
swf_FontUse(&use,BANNER_TEXT); // SWF reduces font information to the used glyphs
swf_FontReduce(font,&use);