X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfc.c;h=16f4b9ba82e5961c922e7fbc7f7c3c6d5e220beb;hb=b038726a1b933b38d04d10eb1d8f093b07e80b73;hp=f4d55da9fdda47fb8a6b3a16f22bc636ef38e100;hpb=c2ff95460eafa033ed1aa901d5ff0fb1a93d1049;p=swftools.git diff --git a/src/swfc.c b/src/swfc.c index f4d55da..16f4b9b 100644 --- a/src/swfc.c +++ b/src/swfc.c @@ -36,8 +36,9 @@ #include "../lib/wav.h" #include "parser.h" #include "../lib/png.h" -#include "../lib/interpolation.h" -#include "../lib/history.h" +#include "swfc-feedback.h" +#include "swfc-interpolation.h" +#include "swfc-history.h" //#define DEBUG static char * outputname = "output.swf"; @@ -1432,13 +1433,13 @@ void s_texture(char*name, char*object, int x, int y, float scalex, float scaley, dictionary_put2(&textures, name, texture); } -void s_font(char*name, char*filename, char *glyphs) +void s_font(char*name, char*filename) { if(dictionary_lookup(&fonts, name)) syntaxerror("font %s defined twice", name); SWFFONT* font; - font = swf_LoadFont(filename, glyphs); + font = swf_LoadFont(filename); if(font == 0) { warning("Couldn't open font file \"%s\"", filename); @@ -3249,17 +3250,7 @@ static int c_font(map_t*args) { char*name = lu(args, "name"); char*filename = lu(args, "filename"); - fontData* usage = getFontData(name); - char* glyphs = usage->glyphs; - if (usage->needsAll) - glyphs = ""; - else - if (usage->notUsed) - { - printf("font %s was defined but not used\n", name); - return 0; - } - s_font(name, filename, glyphs); + s_font(name, filename); return 0; }