Skip to content

Instantly share code, notes, and snippets.

@jenskutilek
Created June 2, 2016 10:24
Show Gist options
  • Save jenskutilek/15d732542ec3f434274d198e2f4da368 to your computer and use it in GitHub Desktop.
Save jenskutilek/15d732542ec3f434274d198e2f4da368 to your computer and use it in GitHub Desktop.
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