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}
verbose ++;
return 0;
}
+ else if(!strcmp(name, "T")) {
+ config_flashtype=1;
+ return 0;
+ }
else if(!strcmp(name, "n")) {
fontname = val;
- return 0;
+ return 1;
}
else if(!strcmp(name, "a")) {
all = 1;
printf("\n");
printf("-h , --help Print short help message and exit\n");
printf("-v , --verbose Be verbose. Use more than one -v for greater effect.\n");
- printf("-n , --name <name> Name of the font (class) in the output file\n");
printf("-o , --output <filename> Write output to file <filename>.\n");
printf("-V , --version Print version info and exit\n");
printf("\n");
{
SWFFONT * font;
- font = swf_LoadFont(infile);
+ font = swf_LoadFont(infile, config_flashtype);
+ swf_FontCreateAlignZones(font);
if(fontname)
- font->name = fontname;
+ font->name = strdup(fontname);
swf_WriteFont(font, outfile);
swf_FontFree(font);