1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
#!/usr/bin/env fontforge if ($version < "20080330") Error("Your version of FontForge is too old - 20080330 or newer is required"); endif SetPref("FoundryName", "Cantarell") SetPref("TTFFoundry", "Cantarell") i = 1 while (i < $argc) Open($argv[i], 1) SelectAll() Simplify() AddExtrema() RoundToInt() CorrectDirection() ClearHints() AutoHint() Generate($fontname + ".otf") Close() i++ endloop |