From: kramm Date: Sun, 1 Feb 2004 22:26:55 +0000 (+0000) Subject: font loading is now done via swf_LoadFont() X-Git-Tag: release-0-5-0~65 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=3bbf311f8f04b6ee366c4d3732150e669365cba5 font loading is now done via swf_LoadFont() --- diff --git a/src/swfc.c b/src/swfc.c index e189cec..f44ea80 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -814,7 +814,9 @@ void s_font(char*name, char*filename) int f; SWF swf; SWFFONT* font; - f = open(filename,O_RDONLY|O_BINARY); + font = swf_LoadFont(filename); + + /*f = open(filename,O_RDONLY|O_BINARY); if (f<0) { warning("Couldn't open file \"%s\": %s", filename, strerror(errno)); font = (SWFFONT*)malloc(sizeof(SWFFONT)); @@ -830,7 +832,7 @@ void s_font(char*name, char*filename) close(f); if (font==0) { syntaxerror("File \"%s\" isn't a valid rfxswf font file", filename); - } + }*/ if(0) {