Minor refactor
This commit is contained in:
parent
4db90f588e
commit
44a32f8a2a
@ -324,12 +324,13 @@ class _TTGlyphVARC(_TTGlyph):
|
|||||||
)
|
)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
t = comp.transform.toTransform()
|
t = comp.transform.toTransform()
|
||||||
|
glyph = self.glyphSet[comp.glyphName]
|
||||||
if isPointPen:
|
if isPointPen:
|
||||||
tPen = TransformPointPen(pen, t)
|
tPen = TransformPointPen(pen, t)
|
||||||
self.glyphSet[comp.glyphName].drawPoints(tPen)
|
glyph.drawPoints(tPen)
|
||||||
else:
|
else:
|
||||||
tPen = TransformPen(pen, t)
|
tPen = TransformPen(pen, t)
|
||||||
self.glyphSet[comp.glyphName].draw(tPen)
|
glyph.draw(tPen)
|
||||||
|
|
||||||
def draw(self, pen):
|
def draw(self, pen):
|
||||||
self._draw(pen, False)
|
self._draw(pen, False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user