From 3bbf311f8f04b6ee366c4d3732150e669365cba5 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 1 Feb 2004 22:26:55 +0000 Subject: [PATCH] font loading is now done via swf_LoadFont() --- src/swfc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) { -- 1.7.10.4