dotfiles2/base/bin/ttc2ttf
2022-08-05 22:16:17 -07:00

14 lines
280 B
Plaintext
Executable file

#!/usr/bin/env fontforge
Print("Opening " + $1);
Print(FontsInFile($1));
nfiles = SizeOf(FontsInFile($1));
i = 0;
while (i < nfiles)
Open($1 + "(" + i + ")", 4);
Print("Saving " + $1:r + "-" + i + ".ttf");
Generate($1:r + "-" + i + ".ttf");
++i;
endloop
Quit(0);