Merge pull request #2770 from fonttools/cff-glyphset-drawpoints

[ttLib] make glyphset[gn].drawPoints(pointPen) work for CFF
This commit is contained in:
Just van Rossum 2022-08-24 15:21:55 +02:00 committed by GitHub
commit 21058f61a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,8 +79,8 @@ class _TTGlyph(object):
self._glyph.draw(pen)
def drawPoints(self, pen):
# drawPoints is only implemented for _TTGlyphGlyf at this time.
raise NotImplementedError()
from fontTools.pens.pointPen import SegmentToPointPen
self.draw(SegmentToPointPen(pen))
class _TTGlyphCFF(_TTGlyph):
pass