Skip to content

Commit

Permalink
fix xlfd
Browse files Browse the repository at this point in the history
  • Loading branch information
molarmanful committed Sep 30, 2024
1 parent b6f57d5 commit abff6b3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 23 deletions.
43 changes: 21 additions & 22 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/kirsch.kbitx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<name id="4" value="kirsch"/>
<name id="5" value="Version 1.0"/>
<name id="6" value="kirsch"/>
<name id="8" value="Benjamin Pang"/>
<name id="8" value="molarmanful"/>
<name id="9" value="Benjamin Pang"/>
<name id="11" value="https://github.com/molarmanful/kirsch"/>
<name id="12" value="https://bennyboy.tech"/>
Expand Down

0 comments on commit abff6b3

Please sign in to comment.