Minor refactor

This commit is contained in:
Behdad Esfahbod 2023-12-16 23:17:31 -07:00
parent 4db90f588e
commit 44a32f8a2a

View File

@ -324,12 +324,13 @@ class _TTGlyphVARC(_TTGlyph):
)
except AttributeError:
t = comp.transform.toTransform()
glyph = self.glyphSet[comp.glyphName]
if isPointPen:
tPen = TransformPointPen(pen, t)
self.glyphSet[comp.glyphName].drawPoints(tPen)
glyph.drawPoints(tPen)
else:
tPen = TransformPen(pen, t)
self.glyphSet[comp.glyphName].draw(tPen)
glyph.draw(tPen)
def draw(self, pen):
self._draw(pen, False)