#!/bin/csh
set DPI=96
set ttf_dir=~/ttf
set FACES="COUR MONOTYPE"
set LANG_ID=koi8.r
foreach x ( 7 8 9 10 11 12 14 16 18 20 24 30 50 100 150)
foreach z ( $FACES )
set y = ${ttf_dir}/${z}
if( -e ${y}.TTF ) then
echo ${z} at ${x}pt
./ttf2bdf -c m -m $LANG_ID -p $x -r $DPI ${y}.TTF | bdftopcf | compress > ${DPI}dpi/${z}${x}.pcf.Z
endif
if( -e ${y}BD.TTF ) then
echo Bold ${z} at ${x}pt
./ttf2bdf -c m -m $LANG_ID -p $x -r $DPI -w bold ${y}BD.TTF | bdftopcf | compress > ${DPI}dpi/${z}bd${x}.pcf.Z
endif
if( -e ${y}I.TTF ) then
echo Italic ${z} at ${x}pt
./ttf2bdf -c m -m $LANG_ID -p $x -r $DPI -s o ${y}I.TTF | bdftopcf | compress >${DPI}dpi/${z}i${x}.pcf.Z
endif
if( -e ${y}BI.TTF ) then
echo Bold Italic ${z} at ${x}pt
./ttf2bdf -c m -m $LANG_ID -p $x -r $DPI -w bold -s o ${y}BI.TTF | bdftopcf | compress > ${DPI}dpi/${z}bi${x}.pcf.Z
endif
end
end