1a96d7823Smrg#!/bin/sh 2a96d7823Smrg# 3a96d7823Smrg# Convert a bdf file into C-code suitable for inclusion in 4a96d7823Smrg# builtin fonts 5a96d7823Smrg# 6a96d7823SmrgFONT=$1 7a96d7823SmrgNAME=$2 8a96d7823Smrgecho 'static const char file_'$NAME'[] = {' 9a96d7823Smrgbdftopcf -p1 -u1 $1 | 10a96d7823Smrg compress -b 12 | 11a96d7823Smrg od -b -v -w8 | 12a96d7823Smrg sed 's/^[0-9]*\( *\)/\1\1\1\1/' | 13a96d7823Smrg sed 's/\([0-9][0-9]*\)/'"'"'\\\1'"'"',/g' 14a96d7823Smrgecho '};' 15