mirror of
https://github.com/kiliman/operator-mono-lig.git
synced 2026-08-12 02:10:52 +02:00
37 lines
544 B
Bash
Executable File
37 lines
544 B
Bash
Executable File
#!/bin/bash
|
|
|
|
mkdir -p build
|
|
|
|
build_font() {
|
|
lig="$1"
|
|
otf=${lig/Lig-/-}
|
|
|
|
if [ ! -e "./original/$otf.otf" ]
|
|
then
|
|
return
|
|
fi
|
|
if [ ! -e "./ligature/$lig/glyphs" ]
|
|
then
|
|
return
|
|
fi
|
|
|
|
echo Building $1
|
|
ttx -f "./original/$otf.otf"
|
|
node index.js $otf
|
|
|
|
for f in ./build/$1*.ttx ; do
|
|
ttx -f $f
|
|
done
|
|
}
|
|
|
|
if [ -n "$1" ]
|
|
then
|
|
# build specified font
|
|
build_font $1
|
|
else
|
|
# build all available fonts
|
|
for d in ./ligature/*/ ; do
|
|
build_font $(basename $d)
|
|
done
|
|
fi
|