[varLib.mutator] Fix typo: maxInstructionDefs -> maxStackElements

This commit is contained in:
Behdad Esfahbod 2021-02-28 18:16:23 -07:00
parent 47c85d9afa
commit 23e5d4eb0b

View File

@ -352,7 +352,7 @@ def instantiateVariableFont(varfont, location, inplace=False, overlap=True):
if hasattr(maxp, "maxStackElements"):
maxp.maxStackElements = max(len(loc), maxp.maxStackElements)
else:
setattr(maxp, "maxInstructionDefs", len(loc))
setattr(maxp, "maxStackElements", len(loc))
if 'name' in varfont:
log.info("Pruning name table")