Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python2
- import sys
- import fontforge
- def main(file):
- for font in fontforge.fontsInFile(file):
- f = fontforge.open(u'%s(%s)' % (file, font))
- f.generate('%s.ttf' % font)
- if __name__ == '__main__':
- if len(sys.argv) != 2:
- sys.exit('one ttc file one time.')
- main(sys.argv[1])
Add Comment
Please, Sign In to add comment