Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (25 sloc) 609 Bytes
#!/usr/local/bin/fontforge
## Revise 1-character font from http://glyphwiki.org/
## d:\fontforge-cygwin\cygwin\bin\fontforge.exe -script "d:\git\AozoraEpub3\gaiji\convert.pe" "d:\git\AozoraEpub3\gaiji" *.ttf
output = $argv[1]
i=2
while (i < $argc)
filename = $argv[i]
Print(filename);
Open(filename);
ClearHints();
Select(0u0020);
Clear();
Select(0u3000);
Clear();
Select(0u3013);
CopyFgToBg();
ClearInstrs();
UnlinkReference();
ExpandStroke(6,0,1,0,1)
CorrectDirection();
RoundToInt();
SetFontHasVerticalMetrics(1);
Generate(output+"/"+filename);
i = i+1
endloop