dotfiles2/base/bin/ttc2ttf

14 lines
280 B
Plaintext
Raw Normal View History

2022-08-06 05:16:17 +00:00
#!/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);