[merge] --import-file

This commit is contained in:
Jan Kučera 2024-01-07 18:37:52 +00:00
parent 08ae1dfe7f
commit 0d1c8b98b6
2 changed files with 5 additions and 0 deletions

View File

@ -202,6 +202,10 @@ def main(args=None):
merger = Merger(options=options)
font = merger.merge(fontfiles)
if (options.import_file):
font.importXML(options.import_file)
with timer("compile and save font"):
font.save(options.output_file)

View File

@ -13,6 +13,7 @@ class Options(object):
self.drop_tables = []
self.input_file = None
self.output_file = "merged.ttf"
self.import_file = None
self.set(**kwargs)