From abff6b36532d161a83c0d39e93bfa0baf70d8bdd Mon Sep 17 00:00:00 2001 From: molarmanful Date: Mon, 30 Sep 2024 15:09:35 -0400 Subject: [PATCH] fix xlfd --- build.sh | 43 +++++++++++++++++++++---------------------- src/kirsch.kbitx | 2 +- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/build.sh b/build.sh index 3e3f348..238e189 100755 --- a/build.sh +++ b/build.sh @@ -3,17 +3,17 @@ . ./fns.sh while getopts "v:n" o; do - case $o in - v) - if [ "$OPTARG" != "" ]; then - v=$OPTARG - fi - ;; - n) - n=1 - ;; - *) ;; - esac + case $o in + v) + if [ "$OPTARG" != "" ]; then + v=$OPTARG + fi + ;; + n) + n=1 + ;; + *) ;; + esac done rm -rf out @@ -30,26 +30,25 @@ nerd_dep bnp src/kirsch.kbitx kirsch ttf ttfix kirsch bnp src/kirsch.kbitx kirsch bdf -sed -i -e '/^FONT /s/-[pc]-/-M-/i' -e '/^FONT /s/-80-/-50-/' out/kirsch.bdf +sed -i -e 's/^FONT .*$/FONT -molarmanful-kirsch-Medium-R-Normal--16-16-75-75-M-50-iso10646-1/' out/kirsch.bdf ff kirsch pcf kirsch if [ "$n" != "" ]; then - nerd - nerd -s + nerd + nerd -s fi if command -v bdfresize &>/dev/null; then - for n in 2 3; do - name=kirsch${n}x - bdfresize -f 2 out/kirsch.bdf >out/"$name".bdf - sed -i -e 's/^iso.*-FONT/FONT/g' -e "s/kirsch/$name/g" out/"$name".bdf - ff "$name" - pcf "$name" - done + for n in 2 3; do + name=kirsch${n}x + bdfresize -f 2 out/kirsch.bdf >out/"$name".bdf + ff "$name" + pcf "$name" + done fi if command -v woff2_compress &>/dev/null; then - woff2_compress out/kirsch.ttf + woff2_compress out/kirsch.ttf fi rm -f out/*-*.bdf diff --git a/src/kirsch.kbitx b/src/kirsch.kbitx index 1ba4a19..4f9a86b 100644 --- a/src/kirsch.kbitx +++ b/src/kirsch.kbitx @@ -15,7 +15,7 @@ - +