aboutsummaryrefslogtreecommitdiffstats
path: root/testfont.sh
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-11-03 01:07:44 -0500
committerepoch <epoch@hacking.allowed.org>2017-11-03 01:07:44 -0500
commit69b51624469f6cb594c6bdca9b7b97141a1c0a0f (patch)
tree81b0a73c18ce57a572257d1cb4a446ed58c98c8d /testfont.sh
parent593e9e63717506da967dccd617bbab3717f7a6e8 (diff)
downloadhackvr-69b51624469f6cb594c6bdca9b7b97141a1c0a0f.tar.gz
hackvr-69b51624469f6cb594c6bdca9b7b97141a1c0a0f.zip
added scripts for vector font testing and part of vector font file.
Diffstat (limited to 'testfont.sh')
-rwxr-xr-xtestfont.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/testfont.sh b/testfont.sh
new file mode 100755
index 0000000..5abd182
--- /dev/null
+++ b/testfont.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+xoffset=0
+yoffset=0
+while read -N 1 c;do
+ name="$(printf "%02x" "'$c")"
+ if [ "$name" = "0a" ]; then
+ xoffset=-6
+ yoffset="$(printf '%d - %d\n' $yoffset 10 | 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)"
+done