5 echo Usage
: mf-to-xpms feta20
17 if [ ! -e out
/$font.
${RESOLUTION}pk
]; then
18 mf
"\\mode=${MODE}; \\input $mf"
19 mv $font.
${RESOLUTION}gf out
20 rm -f $font.log
$font.tfm
21 gftopk out
/$font.
${RESOLUTION}gf out
/$font.
${RESOLUTION}pk
24 # num=`grep "^C *[0-9]*;" $afm | tail -1 | sed "s!^C *\([^;]*\).*!\\1!"`
28 # \font\fetatwenty=feta20
33 # \loop\ifnum\c<$num\advance\c by1
42 # $PKTOPBM out/$font.${RESOLUTION}pk -c $i out/$font-$i.pbm
46 if [ "x$named" = "x" ]; then
47 NUMS
=`grep "^C *[0-9]* *;" $afm | sed "s!^C *\([^ ;]*\).*!\\1!"`
48 PBMS
=`grep "^C *[0-9]* *;" $afm | sed "s!^C *\([^ ;]*\).*!out/$font-\\1.pbm!"`
50 NUMS
=`grep "^C *[0-9]* *;" $afm | sed "s!^C *.*; *N *\([^ ;]*\).*!\\1!"`
51 PBMS
=`grep "^C *[0-9]* *;" $afm | sed "s!^C *.*; *N *\([^ ;]*\).*!out/$font-\\1.pbm!"`
54 # $PKTOPBM out/$font.${RESOLUTION}pk -x 100 -y 100 $PBMS
55 $PKTOPBM out
/$font.
${RESOLUTION}pk
$PBMS
58 ppmtoxpm out
/$font-$i.pbm
> out
/$font-$i.xpm