run: use installed default fonts

This commit is contained in:
2026-08-14 02:10:45 +09:00
parent 6c0a533c4e
commit 05ff88c74f
2 changed files with 22 additions and 0 deletions

19
run.sh
View File

@@ -1,6 +1,25 @@
#!/bin/sh
cd "$(dirname "$0")"
if test "$#" -eq 0; then
set --
for font in \
/usr/share/fonts/TTF/DejaVuSans.ttf \
/usr/share/fonts/TTF/Jigmo.ttf \
/usr/share/fonts/TTF/Jigmo2.ttf \
/usr/share/fonts/noto/NotoSansCJK-Regular.ttc
do
if test -f "$font"; then
set -- "$@" "$font"
fi
done
if test "$#" -eq 0; then
echo "run.sh: no default font found; pass a font file" >&2
exit 1
fi
fi
pkill strans
sleep 1
./strans map "$@" &