Minor refactor
This commit is contained in:
parent
4db90f588e
commit
44a32f8a2a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user