File: sfd2condensed.ff

package info (click to toggle)
ttf-junicode 0.6.17-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 28,772 kB
  • ctags: 36
  • sloc: python: 3,789; makefile: 83
file content (17 lines) | stat: -rw-r--r-- 371 bytes parent folder | download
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 + "Condensed"
    Print("Making ",ttfile)
    SetFontNames(ttfile,"Junicode",$fontname,$fontname)
    SelectAll()
    if ($argc > 2)
	Scale($2,100,0,0)
    else
	Scale(80,100,0,0)
    endif
    Save(ttfile+".sfd")
    Close()
else
    Print("Usage: $0 font.sfd [condense, default 80%]")
endif