File: sfd2light.ff

package info (click to toggle)
ttf-ocr-a 1.0-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 756 kB
  • ctags: 1
  • sloc: makefile: 41
file content (17 lines) | stat: -rw-r--r-- 380 bytes parent folder | download | duplicates (21)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/fontforge
if ($argc > 1)
    Open($argv[1])
    ttfile = $fontname + "Light"
    Print("Making ",ttfile)
    SetFontNames(ttfile,ttfile,$fontname+" Light","Light")
    SelectAll()
    if ($argc > 2)
	ExpandStroke($2,0,0,0,6)
    else
	ExpandStroke(40,0,0,0,6)
    endif
    Save(ttfile+".sfd")
    Close()
else
    Print("Usage: $0 font.sfd [width, default 40]")
endif