Skip to content

Instantly share code, notes, and snippets.

View argon's full-sized avatar

Andrew Naylor argon

View GitHub Profile
@argon
argon / ttc2ttf.pe
Created July 16, 2020 17:40 — forked from fatum12/ttc2ttf.pe
Unpack .ttc and .dfont to .ttf using FontForge
#!/usr/local/bin/fontforge
# Usage: fontforge -script ttc2ttf.pe /path/to/font.ttc
fonts = FontsInFile($1)
n = SizeOf(fonts)
i = 0
while (i < n)
Open($1 + "(" + fonts[i] + ")", 1)
index = ToString(i + 1)