2 # Generate a neatroff output device
4 # ghostscript font directory; it may contain otf and ttf files also
6 # output device directory
12 echo "fonts 10 R I B BI CW H HI HB S1 S" >$TP/DESC
13 echo "res $(( $RES ))" >>$TP/DESC
14 echo "hor 1" >>$TP/DESC
15 echo "ver 1" >>$TP/DESC
16 echo "unitwidth 10" >>$TP/DESC
21 cat $FP/$3 | .
/mktrfn
$4 -a -r$RES -t $1 -p $2 >$TP/$1
25 afmconv R Times-Roman n021003l.afm
26 afmconv I Times-Italic n021023l.afm
27 afmconv B Times-Bold n021004l.afm
28 afmconv BI Times-BoldItalic n021024l.afm
29 afmconv S Symbol s050000l.afm
-s
30 afmconv S1 Times-Roman n021003l.afm
-s
31 afmconv AR AvantGarde-Book a010013l.afm
32 afmconv AI AvantGarde-BookOblique a010033l.afm
33 afmconv AB AvantGarde-Demi a010015l.afm
34 afmconv AX AvantGarde-DemiOblique a010035l.afm
35 afmconv H Helvetica n019043l.afm
36 afmconv HI Helvetica-Oblique n019063l.afm
37 afmconv HB Helvetica-Bold n019044l.afm
38 afmconv HX Helvetica-BoldOblique n019064l.afm
39 afmconv Hr Helvetica-Narrow n019043l.afm
40 afmconv Hi Helvetica-Narrow-Oblique n019063l.afm
41 afmconv Hb Helvetica-Narrow-Bold n019044l.afm
42 afmconv Hx Helvetica-Narrow-BoldOblique n019064l.afm
43 afmconv KR Bookman-Light b018012l.afm
44 afmconv KI Bookman-LightItalic b018032l.afm
45 afmconv KB Bookman-Demi b018015l.afm
46 afmconv KX Bookman-DemiItalic b018035l.afm
47 afmconv NR NewCenturySchlbk-Roman c059013l.afm
48 afmconv NI NewCenturySchlbk-Italic c059033l.afm
49 afmconv NB NewCenturySchlbk-Bold c059016l.afm
50 afmconv NX NewCenturySchlbk-BoldItalic c059036l.afm
51 afmconv PA Palatino-Roman p052003l.afm
52 afmconv PR Palatino-Roman p052003l.afm
53 afmconv PI Palatino-Italic p052023l.afm
54 afmconv PB Palatino-Bold p052004l.afm
55 afmconv PX Palatino-BoldItalic p052024l.afm
56 afmconv C Courier n022003l.afm
57 afmconv CO Courier n022003l.afm
58 afmconv CW Courier n022003l.afm
59 afmconv CI Courier-Oblique n022023l.afm
60 afmconv CB Courier-Bold n022004l.afm
61 afmconv CX Courier-BoldOblique n022024l.afm
62 afmconv ZI ZapfChancery-MediumItalic z003034l.afm
63 afmconv ZD ZapfDingbats d050000l.afm
65 # For otf and ttf files, we assume the postscript name of the font
66 # can be obtained by dropping its extension. Otherwise, remove the
67 # -p argument of mktrfn in the following loops.
69 # converting otf fonts; needs heirloom's otfdump
74 otfdump
$f | .
/mktrfn
-r$RES -p `basename $o .otf` >$TP/`basename $o .otf`
77 # converting ttf fonts; needs heirloom's otfdump
82 otfdump
$f | .
/mktrfn
-r$RES -p `basename $o .ttf` >$TP/`basename $o .ttf`