Commit a43bb3ba authored by John H's avatar John H

added glyph-pen.py

parent 88ad50d0
#!/usr/bin/env python2
from robofab.world import RFont
import sys
font = RFont()
font.info.familyName = "Morphologic"
font.info.styleName = "Regular"
font.info.ascender = 800
font.info.descender = 200
glyph = font.newGlyph('b')
glyph.width = 1000
pen = glyph.getPen()
pen.moveTo((100,100))
pen.lineTo((100,700))
pen.lineTo((150,700))
pen.lineTo((150,400))
pen.lineTo((700,400))
pen.lineTo((700,100))
pen.closePath()
font.save(sys.argv[1])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment