[ttLib.__main__] Fix decompiling all tables

This commit is contained in:
Behdad Esfahbod 2024-05-23 12:58:54 -06:00
parent 33beeaa1a2
commit 90fed08964

View File

@ -77,7 +77,7 @@ def main(args=None):
outFile = options.output
lazy = options.lazy
flavor = options.flavor
tables = options.table if options.table is not None else []
tables = options.table if options.table is not None else ["*"]
fonts = []
for f in options.font:
@ -88,6 +88,7 @@ def main(args=None):
collection = TTCollection(f, lazy=lazy)
fonts.extend(collection.fonts)
if lazy is False:
for font in fonts:
for table in tables if "*" not in tables else font.keys():
font[table] # Decompiles