X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fexample%2Fglyphshape.c;h=d1e8d0176489e8048592c9a31c2b5690c7b65bd5;hb=5857cb5d6dc11e703ee8378201ce04b3fdd99675;hp=0263ca061e8bed2e8abe06c01cf2b683eee80ee6;hpb=d3c1c8d663e46c5cffed480115902d82e5cf5645;p=swftools.git diff --git a/lib/example/glyphshape.c b/lib/example/glyphshape.c index 0263ca0..d1e8d01 100644 --- a/lib/example/glyphshape.c +++ b/lib/example/glyphshape.c @@ -6,7 +6,19 @@ This file is distributed under the GPL, see file COPYING for details -*/ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include #include @@ -75,12 +87,11 @@ int main(int argc, char ** argv) int height = 400; char * s = BANNER_TEXT; - FONTUSAGE use; SWFFONT * font = Font_Demo_Font(ID_FONT); // change font name here - swf_FontInitUsage(&use); - swf_FontUse(&use,s); - swf_FontReduce(font,&use); // make sure that gid's point to the specific glyphs + swf_FontInitUsage(font); + swf_FontUse(font,s); + swf_FontReduce(font); // make sure that gid's point to the specific glyphs memset(&swf,0x00,sizeof(SWF)); @@ -146,7 +157,7 @@ int main(int argc, char ** argv) // swf_WriteCGI(&swf); - f = open("glyphshape.swf",O_RDWR|O_CREAT|O_TRUNC,0644); + f = open("glyphshape.swf",O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0644); if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n"); close(f);