static char * destfilename = "output.swf";
static int all=0;
static int verbose=0;
+static char * fontname = 0;
static struct options_t options[] = {
{"h", "help"},
verbose ++;
return 0;
}
+ else if(!strcmp(name, "n")) {
+ fontname = val;
+ return 1;
+ }
else if(!strcmp(name, "a")) {
all = 1;
return 0;
}
int args_callback_command(char*name,char*val)
{
+ if(filename) {
+ fprintf(stderr, "Please specify only one font\n");
+ exit(1);
+ }
filename = name;
return 0;
}
font = swf_LoadFont(infile);
+ if(fontname)
+ font->name = strdup(fontname);
+
swf_WriteFont(font, outfile);
swf_FontFree(font);
}