Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by fontforge ( 14 years ago )
#!/usr/bin/env fontforge
i = 1
format="ttf"
tofolder="./"
if($argc < 2)
Print("")
Print("USAGE: " + $argv[0] + " <--format <format>> <--tofolder <folder>> [FILES]")
Print("If format is not used, ttf will be used.")
Print("If folder is not used, current folder will be used.")
Print("IMPORTANT! Do not use trailing slash in folder name!")
Print("")
else
while(i < $argc)
if($argv[i]=="-format" || $argv[i]=="--format")
i = i + 1
if(i < $argc)
format = $argv[i]
if(format!="ttf" && format!="otf" && format!="pfb" && format!="svg")
Error("Expected one of 'ttf', 'otf', 'pfb' or 'svg' for format")
endif
endif
elseif($argv[i]=="-tofolder" || $argv[i]=="--tofolder")
i = i + 1
tofolder = $argv[i] + "/"
else
Open($argv[i])
Generate(tofolder + $argv[i]:r + "." + format)
endif
i = i + 1
endloop
endif
Revise this Paste
Children: 44867