File: genttf

package info (click to toggle)
musescore2 2.3.2%2Bdfsg4-16
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 170,464 kB
  • sloc: cpp: 262,612; xml: 176,707; sh: 3,377; ansic: 1,246; python: 356; makefile: 227; perl: 82; pascal: 78
file content (17 lines) | stat: -rwxr-xr-x 460 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# ensure that user preferences don't leak into the fonts
FONTFORGE_LOADPREFS=Never
FONTFORGE_VERBOSE=1
LC_ALL=C
export FONTFORGE_LOADPREFS FONTFORGE_VERBOSE LC_ALL

# docs for Generate():
# https://fontforge.org/docs/scripting/scripting-alpha.html#Generate

# batch convert, with options suitably set
# (0x800 means “generate an old-style kerning table”)
fontforge -lang=ff -script - "$1" <<'EOF'
Open($1)
Generate($1:r + ".ttf", "", 0x800)
EOF