Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (10 sloc) 0.312 kB
from ttfquery import describe, glyphquery, glyph
# Set font here ----->
f = describe.openFont("/Library/Fonts/Impact.ttf")
# Set character here, in this case its C
n = glyphquery.glyphName(f, 'C')
g = glyph.Glyph(n)
c = g.calculateContours(f)
o = glyph.decomposeOutline(c[1])
# Print out the Polyline
print o
Jump to Line
Something went wrong with that request. Please try again.