#!/bin/sh DIR=/win95/windows/fonts FONTS="$DIR/*.ttf" MAPS=/usr/local/lib/ttf2bdf for ENC in 1 15 do if [ $ENC = 1 ] then EXT='' else EXT="-$ENC" fi for n in $FONTS do base=`basename $n .ttf` echo $base $ENC case $base in cour*|lucon*|ocraext*|andale*) arg='-c m' ;; *) arg='' ;; esac for i in 10 12 14 18 24 do if [ ! -f $base$i$EXT.pcf.gz ] then ttf2bdf -m $MAPS/iso8859.$ENC \ -p $i \ -r 72 \ -o tmp.bdf \ $arg \ $n if [ -e tmp.bdf -a -s tmp.bdf ] then bdftopcf tmp.bdf > $base$i$EXT.pcf gzip -9 $base$i$EXT.pcf rm tmp.bdf fi fi done done done