blob: d6785a82989955144b5fe05ba8cc897f717c202e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
xoffset=0
yoffset=0
while read -rN 1 c;do
name="$(printf "%02x" "'$c")"
if [ "$name" = "0a" ]; then
xoffset=-6
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 5 | bc)"
done
|