summaryrefslogtreecommitdiff
path: root/scripts/generate.sh
blob: 9bbf475a806da09ddd66f3c355da1fe39dbc7521 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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()
    Generate($fontname + ".otf")
    Close()
    i++
endloop