[merge] --input-file
This commit is contained in:
parent
8df24b1b1f
commit
d975087ca2
@ -183,10 +183,13 @@ def main(args=None):
|
||||
options = Options()
|
||||
args = options.parse_opts(args)
|
||||
fontfiles = []
|
||||
if options.input_file:
|
||||
with open(options.input_file) as inputfile:
|
||||
fontfiles = [line.strip() for line in inputfile.readlines() if not line.lstrip().startswith("#")]
|
||||
for g in args:
|
||||
fontfiles.append(g)
|
||||
|
||||
if len(args) < 1:
|
||||
|
||||
if len(fontfiles) < 1:
|
||||
print("usage: pyftmerge font... [--output-file=merged.ttf]", file=sys.stderr)
|
||||
return 1
|
||||
|
||||
|
@ -11,6 +11,7 @@ class Options(object):
|
||||
self.verbose = False
|
||||
self.timing = False
|
||||
self.drop_tables = []
|
||||
self.input_file = None
|
||||
self.output_file = "merged.ttf"
|
||||
|
||||
self.set(**kwargs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user