Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Convert font TTC to TTF
"""Convert TTC font to TTF using fontforge with python extension.
**Warning** The scripts saves splitted fonts in the current working directory.
Usage: Droid.ttc
Preinstallation: apt-get install python-fontforge
import sys
import fontforge
fonts = fontforge.fontsInFile(sys.argv[1])
for fontName in fonts:
font ='%s(%s)'%(sys.argv[1], fontName))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment