summaryrefslogtreecommitdiff
path: root/testfont.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testfont.sh')
-rwxr-xr-xtestfont.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/testfont.sh b/testfont.sh
index 5abd182..d6785a8 100755
--- a/testfont.sh
+++ b/testfont.sh
@@ -1,13 +1,13 @@
#!/bin/bash
xoffset=0
yoffset=0
-while read -N 1 c;do
+while read -rN 1 c;do
name="$(printf "%02x" "'$c")"
if [ "$name" = "0a" ]; then
xoffset=-6
- yoffset="$(printf '%d - %d\n' $yoffset 10 | bc)"
+ yoffset="$(printf '%d - %d\n' $yoffset 9 | bc)"
fi
grep "^$name " font/font.hackvr | sed 's/^'"$name"'/'"${name}_${xoffset}_${yoffset}"'/g'
printf "%s_%s_%s move %d %d 0\n" "$name" "$xoffset" "$yoffset" "$xoffset" "$yoffset"
- xoffset="$(printf '%d + %d\n' $xoffset 6 | bc)"
+ xoffset="$(printf '%d + %d\n' $xoffset 5 | bc)"
done