#!/bin/sh
# Make the standard PostScript fonts in various sizes.
# It should possible to make the oblique fonts by mucking with the
# transformation matrix, but we don't do that.

ag="agk agko agd agdo"
bk="bkd bkdi bkl bkli"
cr="crb crbo crro crr"
hv="hvb hvbo hvrrn hvro hvr"
nc="ncb ncbi ncri ncr"
pl="plb plbi plri plr"
sy="syr"
tm="tmb tmbi tmri tmr"
zc="zcmi"
zd="zdr"

if test -z "$fontlist"
then fontlist="$ag $bk $cr $hv $nc $pl $sy $tm $zc $zd"
fi

if test -z "$sizelist"
then sizelist="5 6 7 8 9 10 11 12 14 16 18 20 24 36"
fi

for size in $sizelist
do
  echo ${size}:
  for fontfilename in $fontlist
  do
    case $fontfilename in
    zd*) encoding=zdingbat;;
    sy*) encoding=psymbol;;
    *) encoding=dvips;;
    esac
    echo -n " $fontfilename"
    gsrenderfont -point-size $size -encoding $encoding p$fontfilename \
      || exit 1
  done
  echo
done
