Reuse a variable
This commit is contained in:
parent
76d293ec05
commit
b772f1d686
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user