-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathoutlines.py
More file actions
executable file
·23 lines (20 loc) · 808 Bytes
/
outlines.py
File metadata and controls
executable file
·23 lines (20 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/local/bin/fontforge -script
##############################################################################
#
# MarathiCursive stroke to outline font conversion script
#
##############################################################################
import fontforge;
font = fontforge.open("MarathiCursive.sfd");
font.strokedfont = False;
for glyph in font.glyphs():
if glyph.isWorthOutputting():
print("Processing glyph " + glyph.glyphname)
glyph.stroke("eliptical",80,40,-30.0/180.0*3.141592653589793238,"square","round")
glyph.addExtrema();glyph.round()
glyph.simplify();glyph.round()
glyph.removeOverlap();glyph.round()
glyph.simplify();glyph.round()
glyph.addExtrema();glyph.round()
glyph.autoHint()
font.save("Outlines.sfd");