Skip to content

Instantly share code, notes, and snippets.

View billyromano's full-sized avatar

Billy Romano billyromano

View GitHub Profile
@lilydjwg
lilydjwg / ttc2ttf
Last active July 12, 2023 14:27
Convert .ttc to several .ttf files into the current directory
#!/usr/bin/env python3
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)