Free Hero Mesh

make.sh at [7597620f97]
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.

File keyicons/make.sh artifact 76b85ac3fe part of check-in 7597620f97


#!/bin/bash --
cd keyicons
#for X in `seq 48 57` `seq 65 90`; do
#  pngff < charset.png | ff-text 16 16 `dc -e $X"P"` | ffxbm X > $X.xbm
#done
sed 's/^  //' <<"EOF" > ../keyicons.xbm
  #define keyicons_width 16
  #define keyicons_height 4096
  static unsigned char keyicons_bits[] = {
EOF
for X in `seq 0 255`; do
  test -f $X.xbm
  X=`dc -e "1 $? - $X *p"`
  sed -n 's/};/,/;/^ /p' < $X.xbm >> ../keyicons.xbm
done
echo '};' >> ../keyicons.xbm