X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=src%2Ffont2swf.c;h=972f2943084e17afb744fc427039ac6e299b77b5;hp=cd30118109dfccecd09f0ef044ad83fc4feef8c9;hb=c63b2bf21dc1df9a736f0b4c08f6cba828cdab92;hpb=5a9b4530f6a84ce3666a94605270bddaf43c9ff2 diff --git a/src/font2swf.c b/src/font2swf.c index cd30118..972f294 100644 --- a/src/font2swf.c +++ b/src/font2swf.c @@ -31,10 +31,12 @@ static char * destfilename = "output.swf"; static int all=0; static int verbose=0; static char * fontname = 0; +static char config_flashtype = 0; static struct options_t options[] = { {"h", "help"}, {"v", "verbose"}, +{"T", "flashtype"}, {"o", "output"}, {"V", "version"}, {0,0} @@ -54,6 +56,10 @@ int args_callback_option(char*name,char*val) verbose ++; return 0; } + else if(!strcmp(name, "T")) { + config_flashtype=1; + return 0; + } else if(!strcmp(name, "n")) { fontname = val; return 1; @@ -97,7 +103,8 @@ static void convertFont(char*infile, char*outfile) { SWFFONT * font; - font = swf_LoadFont(infile); + font = swf_LoadFont(infile, config_flashtype); + swf_FontCreateAlignZones(font); if(fontname) font->name = strdup(fontname);