[varLib.interpolatable] Don't iterate over all glyphs if not needed

This commit is contained in:
Behdad Esfahbod 2023-10-12 19:23:51 -04:00
parent 408dea84bc
commit 5eff55e654

View File

@ -450,8 +450,10 @@ def main(args=None):
ttGlyphSets = {}
glyphsets = defaultdict(dict)
for glyphname, variations in gvar.variations.items():
for var in variations:
if glyphs is None:
glyphs = gvar.variations.keys()
for glyphname in glyphs:
for var in gvar.variations[glyphname]:
locDict = {}
loc = []
for tag, val in sorted(var.axes.items()):