added argument to initUsage.
authorkramm <kramm>
Sun, 16 May 2004 21:10:59 +0000 (21:10 +0000)
committerkramm <kramm>
Sun, 16 May 2004 21:10:59 +0000 (21:10 +0000)
lib/example/glyphshape.c
lib/example/text.c

index 6d9f2f2..28f475d 100644 (file)
@@ -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
-  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
index 9a18985..c346251 100644 (file)
@@ -75,7 +75,7 @@ int main(int argc, char ** argv)
   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);