2022-11-13 21:51:40 +08:00
|
|
|
if [ "$1" = "dev" ]; then
|
|
|
|
datetime=$(date +"%Y-%m-%d %H:%M:%S")
|
|
|
|
sed -i -E "s/(^ +Version .+)/\1 (dev $datetime)/g" src/SmileySans.ttx
|
|
|
|
fi
|
2022-11-13 21:18:29 +08:00
|
|
|
|
2024-02-07 18:24:48 +08:00
|
|
|
if [ ! -d "build" ]; then
|
|
|
|
mkdir build
|
|
|
|
fi
|
|
|
|
|
2022-11-13 21:18:29 +08:00
|
|
|
fontmake \
|
2022-11-13 21:20:45 +08:00
|
|
|
-g src/SmileySans.glyphspackage \
|
2022-11-13 21:18:29 +08:00
|
|
|
--output-dir build \
|
|
|
|
--master-dir {tmp} \
|
|
|
|
--timing
|
|
|
|
|
|
|
|
for ext in otf ttf
|
|
|
|
do
|
|
|
|
ttx -m build/SmileySans-Oblique.$ext -o build/SmileySans-Oblique.$ext src/SmileySans.ttx
|
|
|
|
python -c "from fontTools.ttLib import woff2; woff2.compress('build/SmileySans-Oblique.$ext', 'build/SmileySans-Oblique.$ext.woff2')"
|
|
|
|
done
|