[VARC] Allow drawing same-name glyph

This commit is contained in:
Behdad Esfahbod 2023-12-17 13:14:01 -07:00
parent ce3e260955
commit 28520553f3

View File

@ -324,7 +324,12 @@ class _TTGlyphVARC(_TTGlyph):
)
except AttributeError:
t = comp.transform.toTransform()
glyph = self.glyphSet[comp.glyphName]
compGlyphSet = (
self.glyphSet
if comp.glyphName != self.name
else glyphSet.glyphSet
)
glyph = compGlyphSet[comp.glyphName]
if isPointPen:
tPen = TransformPointPen(pen, t)
glyph.drawPoints(tPen)