Merge pull request #2770 from fonttools/cff-glyphset-drawpoints
[ttLib] make glyphset[gn].drawPoints(pointPen) work for CFF
This commit is contained in:
commit
21058f61a4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user