[ttLib.__main__] Fix decompiling all tables
This commit is contained in:
parent
33beeaa1a2
commit
90fed08964
@ -77,7 +77,7 @@ def main(args=None):
|
|||||||
outFile = options.output
|
outFile = options.output
|
||||||
lazy = options.lazy
|
lazy = options.lazy
|
||||||
flavor = options.flavor
|
flavor = options.flavor
|
||||||
tables = options.table if options.table is not None else []
|
tables = options.table if options.table is not None else ["*"]
|
||||||
|
|
||||||
fonts = []
|
fonts = []
|
||||||
for f in options.font:
|
for f in options.font:
|
||||||
@ -88,9 +88,10 @@ def main(args=None):
|
|||||||
collection = TTCollection(f, lazy=lazy)
|
collection = TTCollection(f, lazy=lazy)
|
||||||
fonts.extend(collection.fonts)
|
fonts.extend(collection.fonts)
|
||||||
|
|
||||||
for font in fonts:
|
if lazy is False:
|
||||||
for table in tables if "*" not in tables else font.keys():
|
for font in fonts:
|
||||||
font[table] # Decompiles
|
for table in tables if "*" not in tables else font.keys():
|
||||||
|
font[table] # Decompiles
|
||||||
|
|
||||||
if outFile is not None:
|
if outFile is not None:
|
||||||
if len(fonts) == 1:
|
if len(fonts) == 1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user