Last active
August 29, 2015 13:57
-
-
Save typemytype/9507969 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fontTools.pens.basePen import BasePen | |
class MyPen(BasePen): | |
def _moveTo(self, pt): | |
print "move to", pt | |
def _lineTo(self, pt): | |
print "line to", pt | |
def _curveToOne(self, pt1, pt2, pt3): | |
print "curve to", pt1, pt2, pt3 | |
g = CurrentGlyph() | |
pen = MyPen(g.getParent()) | |
g.draw(pen) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment