Guest User

Untitled

a guest
Jul 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/usr/bin/env python2
  2.  
  3. import sys
  4. import fontforge
  5.  
  6. def main(file):
  7. for font in fontforge.fontsInFile(file):
  8. f = fontforge.open(u'%s(%s)' % (file, font))
  9. f.generate('%s.ttf' % font)
  10.  
  11. if __name__ == '__main__':
  12. if len(sys.argv) != 2:
  13. sys.exit('one ttc file one time.')
  14. main(sys.argv[1])
Add Comment
Please, Sign In to add comment