if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|s", kwlist, &filename))
return NULL;
- font = swf_LoadFont(filename);
+ font = swf_LoadFont(filename, 0);
if(!font) {
PyErr_SetString(PyExc_Exception, setError("Could not load %s", filename));
return NULL;
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 1;
{
SWFFONT * font;
- font = swf_LoadFont(infile);
+ font = swf_LoadFont(infile, config_flashtype);
swf_FontCreateAlignZones(font);
if(fontname)