joana-von Fuchs.py 790 Bytes
Newer Older
pw's avatar
pw committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
from robofab.world import RFont
font = RFont ('Morphologic.ufo')

try:
	glyph = font ['percent']
except KeyError:
	glyph = font.newGlyph ('percent')
	
pen = glyph.getPen()

pen.moveTo((225,100))
pen.lineTo((225,150))
pen.lineTo((475,400))
pen.lineTo((525,400))
pen.lineTo((525,350))
pen.lineTo((275,100))
pen.closePath()

font.save()

pen = glyph.getPen()

pen.moveTo((250,325))
pen.lineTo((225,350))
pen.lineTo((225,375))
pen.lineTo((250,400))
pen.lineTo((275,400))
pen.lineTo((300,375))
pen.lineTo((300,350))
pen.lineTo((275,325))
pen.closePath()

font.save()

pen = glyph.getPen()

pen.moveTo((475,100))
pen.lineTo((450,125))
pen.lineTo((450,150))
pen.lineTo((475,175))
pen.lineTo((500,175))
pen.lineTo((525,150))
pen.lineTo((525,125))
pen.lineTo((500,100))
pen.closePath()

font.save()