Advertisement
Guest User

Untitled

a guest
May 24th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. import extractor
  2. import defcon
  3.  
  4. ttf_path = u"/Library/Fonts/Georgia.ttf"
  5. ufo_path = u"/Users/gferreira/Documents/test.ufo"
  6.  
  7. ufo = defcon.Font()
  8. extractor.extractUFO(ttf_path, ufo)
  9.  
  10. from lib.tools.bezierTools import curveConverter
  11.  
  12. for glyph in ufo:
  13. curveConverter.quadratic2bezier(glyph)
  14. ufo.segmentType = glyph.segmentType
  15.  
  16. ufo.save(ufo_path)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement