Closed avpanov closed 11 years ago
diff -Nuar mftrace-1.2.18/mftrace.py mftrace-1.2.18.new/mftrace.py --- mftrace-1.2.18/mftrace.py 2011-03-13 02:00:52.000000000 +1100 +++ mftrace-1.2.18.new/mftrace.py 2013-06-06 20:15:10.000000000 +1100 @@ -721,11 +721,11 @@
stat = 1
if fontforge_cmd:
stat = system ("%s --help > pfv 2>&1 " % fontforge_cmd,
ignore_error = 1)
if stat != 0:
warning ("Command `%s --help' failed. Cannot simplify or convert to TTF.\n" % fontforge_cmd)
return ''
if fontforge_cmd == 'pfaedit' \ @@ -974,7 +974,7 @@ action="store_true", dest="keep_tempdir", help= ("Keep all output in directory %s.dir") % program_name)
p.add_option ('-e', '--encoding', metavar="FILE", action='store', dest="encodingfile", default="", help= ("Use encoding file FILE"))
p.add_option ('--grid', metavar='SCALE', dest='grid_scale', type='float', @@ -1059,7 +1062,7 @@
global options
if not files: sys.stderr.write ('Need argument on command line \n') p.print_help ()
thanks for the patch. Next time, you'd probably better make pull request. github formats the comment box.
The calls to p.add_option() for --potrace and --autotrace have no action attributes. Due to this some options are always set to defaults. My patch fixes this issue. Also, it removes redundant empty parameters for p.add_option() and fixes the issue with calling fontforge which now lacks -usage option.