braindrops.nicwands.com/app/bin/generateMSDF.sh
2026-07-23 15:27:12 -04:00

35 lines
997 B
Bash
Executable file

#!/bin/bash
BASE_DIR=/home/nicwands/Documents/Dev/freelance/portfolio/braindrops.nicwands.com/
OUT_DIR="$BASE_DIR"/app/public/splash-title/
# Settings
PX_RANGE=22
SIZE=1024
msdf-atlas-gen \
-font "$BASE_DIR"/font-ttf/InstrumentSerif-Italic.ttf \
-fontname 'instrument-serif' \
-imageout "$OUT_DIR"/instrument-serif-atlas.png \
-json "$OUT_DIR"/instrument-serif-atlas.json \
-pxrange $PX_RANGE \
-dimensions $SIZE $SIZE \
-errorcorrection auto
msdf-atlas-gen \
-font "$BASE_DIR"/font-ttf/HankenGrotesk-SemiBold.ttf \
-fontname 'hanken-grotesk' \
-imageout "$OUT_DIR"/hanken-grotesk-atlas.png \
-json "$OUT_DIR"/hanken-grotesk-atlas.json \
-pxrange $PX_RANGE \
-dimensions $SIZE $SIZE \
-errorcorrection auto
msdf-atlas-gen \
-font "$BASE_DIR"/font-ttf/IosevkaCharonMono-Bold.ttf \
-fontname 'iosevka-charon' \
-imageout "$OUT_DIR"/iosevka-charon-atlas.png \
-json "$OUT_DIR"/iosevka-charon-atlas.json \
-pxrange $PX_RANGE \
-dimensions $SIZE $SIZE \
-errorcorrection auto