-
Notifications
You must be signed in to change notification settings - Fork 0
/
patch-nf
executable file
·34 lines (27 loc) · 882 Bytes
/
patch-nf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
VERSION="0.1"
while getopts ':vo:?' OPTION; do
case "$OPTION" in
v)
echo "EZ-Nerd Font patcher script version $VERSION"
exit 1
;;
o)
OUTPUTDIR="$OPTARG"
echo "Outputting to $OUTPUTDIR"
;;
?)
echo "Usage: $0 [-o output_directory_name] TARGET" >&2
exit 1
;;
esac
done
shift "$(($OPTIND -1))"
TARGET="$*"
echo "Generating fonts for $TARGET"
echo "Starting normal patch"
fontforge -script font-patcher --careful --outputdir $OUTPUTDIR -c --progressbars $TARGET
echo "Starting mono patch"
fontforge -script font-patcher --careful --outputdir $OUTPUTDIR -c --mono --progressbars $TARGET
echo "Starting propo patch"
fontforge -script font-patcher --careful --outputdir $OUTPUTDIR -c --variable-width-glyphs --progressbars $TARGET