Reuse a variable

This commit is contained in:
Behdad Esfahbod 2023-12-20 00:09:41 -07:00
parent 76d293ec05
commit b772f1d686

View File

@ -330,12 +330,9 @@ class _TTGlyphVARC(_TTGlyph):
varTransform.applyDeltas(deltas)
transform = varTransform.transform
with self.glyphSet.glyphSet.pushLocation(
location, comp.flags & VarComponentFlags.RESET_UNSPECIFIED_AXES
):
with self.glyphSet.pushLocation(
location, comp.flags & VarComponentFlags.RESET_UNSPECIFIED_AXES
):
reset = comp.flags & VarComponentFlags.RESET_UNSPECIFIED_AXES
with self.glyphSet.glyphSet.pushLocation(location, reset):
with self.glyphSet.pushLocation(location, reset):
try:
pen.addVarComponent(
comp.glyphName, transform, self.glyphSet.rawLocation