4
# This script creates series of bdf files from TTF file.
7
# Please set up parameters
16
# TTF files, please specify only base name
17
# Script will try to use BolD, Italic and BoldItalic versions of face
18
set FACES="ARIAL ARIBLK ARIALN TAHOMA TIMES VERDANA"
28
foreach x ( 7 8 9 10 11 12 14 16 18 20 24 30 50 100 150)
30
set y = ${ttf_dir}/${z}
33
if( -e ${y}.TTF ) then
35
./ttf2bdf -m $LANG_ID -p $x -r $DPI ${y}.TTF | bdftopcf | compress > ${DPI}dpi/${z}${x}.pcf.Z
39
if( -e ${y}BD.TTF ) then
40
echo Bold ${y} at ${x}pt
41
./ttf2bdf -m $LANG_ID -p $x -r $DPI -w bold ${y}BD.TTF | bdftopcf | compress > ${DPI}dpi/${z}bd${x}.pcf.Z
45
if( -e ${y}I.TTF ) then
46
echo Italic ${y} at ${x}pt
47
./ttf2bdf -m $LANG_ID -p $x -r $DPI -s o ${y}I.TTF | bdftopcf | compress >${DPI}dpi/${z}i${x}.pcf.Z
51
if( -e ${y}BI.TTF ) then
52
echo Bold Italic ${y} at ${x}pt
53
./ttf2bdf -m $LANG_ID -p $x -r $DPI -w bold -s o ${y}BI.TTF | bdftopcf | compress > ${DPI}dpi/${z}bi${x}.pcf.Z
58
echo Creating fonts directory...