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) varTransform.applyDeltas(deltas)
transform = varTransform.transform transform = varTransform.transform
with self.glyphSet.glyphSet.pushLocation( reset = comp.flags & VarComponentFlags.RESET_UNSPECIFIED_AXES
location, comp.flags & VarComponentFlags.RESET_UNSPECIFIED_AXES with self.glyphSet.glyphSet.pushLocation(location, reset):
): with self.glyphSet.pushLocation(location, reset):
with self.glyphSet.pushLocation(
location, comp.flags & VarComponentFlags.RESET_UNSPECIFIED_AXES
):
try: try:
pen.addVarComponent( pen.addVarComponent(
comp.glyphName, transform, self.glyphSet.rawLocation comp.glyphName, transform, self.glyphSet.rawLocation