[avarPlanner] A couple more minor changes to main()
This commit is contained in:
parent
ebbe869367
commit
964685ae44
@ -816,7 +816,7 @@ def main(args=None):
|
|||||||
"fonttools varLib.avarPlanner",
|
"fonttools varLib.avarPlanner",
|
||||||
description="Plan `avar` table for variable font",
|
description="Plan `avar` table for variable font",
|
||||||
)
|
)
|
||||||
parser.add_argument("font", metavar="font.ttf", help="Font file.")
|
parser.add_argument("font", metavar="varfont.ttf", help="Variable-font file.")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-o",
|
"-o",
|
||||||
"--output-file",
|
"--output-file",
|
||||||
@ -906,7 +906,7 @@ def main(args=None):
|
|||||||
font = TTFont(options.font)
|
font = TTFont(options.font)
|
||||||
if not "fvar" in font:
|
if not "fvar" in font:
|
||||||
log.error("Not a variable font.")
|
log.error("Not a variable font.")
|
||||||
sys.exit(1)
|
return 1
|
||||||
|
|
||||||
if options.glyphs is not None:
|
if options.glyphs is not None:
|
||||||
glyphs = options.glyphs.split()
|
glyphs = options.glyphs.split()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user