[glyphSet] Fix lsb offsetting

This commit is contained in:
Behdad Esfahbod 2022-08-13 15:19:08 -06:00
parent e1d8496d73
commit 37277ee86e

View File

@ -198,4 +198,5 @@ class _TTVarGlyphGlyf(object):
horizontalAdvanceWidth, leftSideBearing = setCoordinates(glyph, coordinates, glyf)
self.width = horizontalAdvanceWidth
# XXX height!
glyph.draw(pen, self._ttFont['glyf']) # XXX offset based on lsb
offset = leftSideBearing - glyph.xMin if hasattr(glyph, "xMin") else 0
glyph.draw(pen, glyf, offset)