Created
June 2, 2016 10:24
-
-
Save jenskutilek/15d732542ec3f434274d198e2f4da368 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 defcon import Font | |
from fontTools.pens.cocoaPen import CocoaPen | |
from drawBot.drawBotDrawingTools import _drawBotDrawingTool | |
def drawGlyph(glyph): | |
pen = CocoaPen(glyph.getParent()) | |
glyph.draw(pen) | |
path = pen.path | |
_drawBotDrawingTool.drawPath(path) | |
f = Font("myUFOPath.ufo") | |
drawGlyph(f["A"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment