From 90fed08964bba2b81f0e1ec9222c95b0bee05384 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 23 May 2024 12:58:54 -0600 Subject: [PATCH] [ttLib.__main__] Fix decompiling all tables --- Lib/fontTools/ttLib/__main__.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Lib/fontTools/ttLib/__main__.py b/Lib/fontTools/ttLib/__main__.py index 2733444d8..a7ba7c76a 100644 --- a/Lib/fontTools/ttLib/__main__.py +++ b/Lib/fontTools/ttLib/__main__.py @@ -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,9 +88,10 @@ def main(args=None): collection = TTCollection(f, lazy=lazy) fonts.extend(collection.fonts) - for font in fonts: - for table in tables if "*" not in tables else font.keys(): - font[table] # Decompiles + if lazy is False: + for font in fonts: + for table in tables if "*" not in tables else font.keys(): + font[table] # Decompiles if outFile is not None: if len(fonts) == 1: