File: fontexport.pe

package info (click to toggle)
fonts-liberation2 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 26,128 kB
  • sloc: makefile: 104; python: 45; sh: 1
file content (21 lines) | stat: -rw-r--r-- 464 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# FontForge script to export font file(s) in selectable format
# TODO: 0x800 fmflags only for TTF?

if ($argc <= 1)
    Print("usage: script [-<format>] file1 ...")
    Print("(default format is ttf)")
    return(1)
endif

format = "ttf"
if (Strstr($1, "-") == 0)
    format = Strsub($1, 1)
    shift
endif
while ($argc > 1)
    Print("Generating " + format  + " from " + $1)
    Open($1)
    Generate($1:r + "." + format, "", 0x800)
    Close()
    shift
endloop