Commit | Line | Data |
---|---|---|
0d2a35b1 WJ |
1 | # Copyright (C) 1991 Aladdin Enterprises. All rights reserved. |
2 | # Distributed by Free Software Foundation, Inc. | |
3 | # | |
4 | # This file is part of Ghostscript. | |
5 | # | |
6 | # Ghostscript is distributed in the hope that it will be useful, but | |
7 | # WITHOUT ANY WARRANTY. No author or distributor accepts responsibility | |
8 | # to anyone for the consequences of using it or for whether it serves any | |
9 | # particular purpose or works at all, unless he says so in writing. Refer | |
10 | # to the Ghostscript General Public License for full details. | |
11 | # | |
12 | # Everyone is granted permission to copy, modify and redistribute | |
13 | # Ghostscript, but only under the conditions described in the Ghostscript | |
14 | # General Public License. A copy of this license is supposed to have been | |
15 | # given to you along with Ghostscript so you can know your rights and | |
16 | # responsibilities. It should be in a file named COPYING. Among other | |
17 | # things, the copyright notice and this notice must be preserved on all | |
18 | # copies. | |
19 | ||
20 | # Makefile for Ghostscript fonts. | |
21 | # For more information about Ghostscript fonts, consult the Fontmap file. | |
22 | ||
23 | AFM=afm | |
24 | BDF=bdf | |
25 | FONTS=fonts | |
26 | ||
27 | fonts: AvantGarde Bookman Charter Courier Helvetica NewCenturySchlbk \ | |
28 | Palatino Symbol TimesRoman Ugly Utopia ZapfChancery ZapfDingbats | |
29 | ||
30 | # ---------------------------------------------------------------- | |
31 | ||
32 | # Each Ghostscript font has a uniqueID (an integer). This is used | |
33 | # to identify distinct fonts within the Ghostscript font machinery. | |
34 | # since some P*stScr*pt programs assume that adding a small integer | |
35 | # to a uniqueID produces a new, distinct, unused uniqueID, | |
36 | # the uniqueID values in this file are all multiples of 10. | |
37 | # To avoid some conflicts with Adobe's numbering scheme, the uniqueID | |
38 | # values in this file all lie between 4000000 and 4999999. | |
39 | # The uniqueID is also used only when converting the font. | |
40 | # The algorithm for computing the UniqueID is given below. | |
41 | ||
42 | # A UniqueID for a Ghostscript font looks like: | |
43 | # | |
44 | # 4TTWVE0 | |
45 | # | |
46 | # where TT is a two-digit number representing the typeface, | |
47 | # W represents the weight (normal, bold, ...), | |
48 | # V represents the variant (normal, italic, oblique, ...), and | |
49 | # E represents the expansion (normal, condensed, ...). | |
50 | # This scheme will not work forever. As soon there are more 99 | |
51 | # typefaces, or more than 9 weights or variants, we will have to do | |
52 | # something else. But it suffices for the near future. | |
53 | # | |
54 | # The filename for a font is constructed in a somewhat similar way: | |
55 | # | |
56 | # FTTWVVVE.gsf | |
57 | # | |
58 | # where F is the foundry, TT a two-letter abbreviation for the | |
59 | # typeface, and W, V, and E the weight, variant, and expansion. Since a | |
60 | # font can have multiple variants, we allocate three letters to that | |
61 | # (for example, Lucida Regular Sans Typewriter Italic). If a font has | |
62 | # four variants, you're on your own. If a font does have multiple | |
63 | # variants, it's best to add the expansion letter `r', so that it is | |
64 | # clear which letters are variants and which the expansion. | |
65 | # | |
66 | # This scheme is very close to the one proposed in `Filenames for | |
67 | # fonts', published in the first 1990 issue of TUGboat (the | |
68 | # journal of the TeX Users Group). | |
69 | # | |
70 | # In the following tables, we made no attempt to be exhaustive. | |
71 | # Instead, we have simply allocated entries for those things that we needed | |
72 | # for the fonts that we are actually distributing. | |
73 | # | |
74 | # | |
75 | # foundries: | |
76 | # ---------------------------------------------------------------- | |
77 | # b = Bitstream | |
78 | # p = Adobe (`p' for PostScript) | |
79 | # | |
80 | # | |
81 | # | |
82 | # typefaces: | |
83 | # id name filename prefix | |
84 | # ---------------------------------------------------------------- | |
85 | # 08 = Avant Garde = pag (Adobe) | |
86 | # 11 = Bookman = pbk (Adobe) | |
87 | # 01 = Charter = bch (Bitstream) | |
88 | # 02 = Courier = pcr (Adobe) | |
89 | # 03 = Helvetica = phv (Adobe) | |
90 | # 04 = New Century Schoolbook = pnc (Adobe) | |
91 | # 09 = Palatino = ppl (Adobe) | |
92 | # 05 = Symbol = psy (Adobe) | |
93 | # 06 = Times = ptm (Adobe) | |
94 | # 00 = Ugly = ugly (public domain) | |
95 | # 07 = Zapf Chancery = zc (public domain) | |
96 | # 10 = Zapf Dingbats = pzd (Adobe) | |
97 | # | |
98 | # 90 = Hershey Gothic English = hrge | |
99 | # 91 = Hershey Gothic Italian = hrit | |
100 | # 92 = Hershey Gothic German = hrgr | |
101 | # 93 = Hershey Greek = hrgk | |
102 | # 94 = Hershey Plain = hrpl | |
103 | # 95 = Hershey Script = hrsc | |
104 | # 96 = Hershey Symbol = hrsy | |
105 | # | |
106 | # | |
107 | # weights: | |
108 | # 0 = normal = r | |
109 | # 1 = bold = b | |
110 | # 2 = book = k | |
111 | # 3 = demi = d | |
112 | # 4 = light = l | |
113 | # | |
114 | # | |
115 | # variants: | |
116 | # 0 = normal = r (omitted when the weight is normal) | |
117 | # 1 = italic = i | |
118 | # 2 = oblique = o | |
119 | # | |
120 | # | |
121 | # expansions: | |
122 | # 0 = normal = r (omitted when the weight and variant | |
123 | # are normal) | |
124 | # 1 = narrow = n | |
125 | # | |
126 | # | |
127 | ||
128 | # ---------------------------------------------------------------- | |
129 | ||
130 | # The bdftops conversion program takes the following arguments: | |
131 | # | |
132 | # bdftops xx.bdf [yy1.afm ...] zz.gsf fontname uniqueID [encodingname] | |
133 | # | |
134 | # These arguments have the following meanings: | |
135 | # | |
136 | # xx.bdf - the input bitmap file, a BDF file | |
137 | # yy*.afm - the AFM files giving the metrics (optional) | |
138 | # zz.gsf - the output file | |
139 | # fontname - the font name | |
140 | # uniqueID - the uniqueID, as described above | |
141 | # encodingname - the encoding for the font | |
142 | # | |
143 | # Currently, the only defined encodings are StandardEncoding, | |
144 | # ISOLatin1Encoding, and SymbolEncoding. If the encoding is omitted, | |
145 | # StandardEncoding is assumed. | |
146 | ||
147 | # ---------------------------------------------------------------- | |
148 | ||
149 | # ---------------- Avant Garde ---------------- | |
150 | ||
151 | AvantGarde: $(FONTS)/pagk.gsf $(FONTS)/pagko.gsf $(FONTS)/pagd.gsf \ | |
152 | $(FONTS)/pagdo.gsf | |
153 | ||
154 | $(FONTS)/pagk.gsf: $(BDF)/avt18.bdf $(AFM)/avantgarde_book.afm | |
155 | bdftops $(BDF)/avt18.bdf $(AFM)/avantgarde_book.afm \ | |
156 | $(FONTS)/pagk.gsf AvantGarde-Book 4082000 | |
157 | ||
158 | $(FONTS)/pagko.gsf: $(BDF)/pagko.bdf $(AFM)/avantgarde_bookoblique.afm | |
159 | bdftops $(BDF)/pagko.bdf $(AFM)/avantgarde_bookoblique.afm \ | |
160 | $(FONTS)/pagko.gsf AvantGarde-BookOblique 4082200 | |
161 | ||
162 | $(FONTS)/pagd.gsf: $(BDF)/pagd.bdf $(AFM)/avantgarde_demi.afm | |
163 | bdftops $(BDF)/pagd.bdf $(AFM)/avantgarde_demi.afm \ | |
164 | $(FONTS)/pagd.gsf AvantGarde-Demi 4083000 | |
165 | ||
166 | $(FONTS)/pagdo.gsf: $(BDF)/pagdo.bdf $(AFM)/avantgarde_demioblique.afm | |
167 | bdftops $(BDF)/pagdo.bdf $(AFM)/avantgarde_demioblique.afm \ | |
168 | $(FONTS)/pagdo.gsf AvantGarde-DemiOblique 4083200 | |
169 | ||
170 | # ---------------- Bookman ---------------- | |
171 | ||
172 | Bookman: $(FONTS)/pbkl.gsf $(FONTS)/pbkli.gsf $(FONTS)/pbkd.gsf \ | |
173 | $(FONTS)/pbkdi.gsf | |
174 | ||
175 | $(FONTS)/pbkl.gsf: $(BDF)/pbkl.bdf $(AFM)/Bookman-Light.afm | |
176 | bdftops $(BDF)/pbkl.bdf $(AFM)/Bookman-Light.afm \ | |
177 | $(FONTS)/pbkl.gsf Bookman-Light 4114000 | |
178 | ||
179 | $(FONTS)/pbkli.gsf: $(BDF)/pbkli.bdf $(AFM)/Bookman-LightItalic.afm | |
180 | bdftops $(BDF)/pbkli.bdf $(AFM)/Bookman-LightItalic.afm \ | |
181 | $(FONTS)/pbkli.gsf Bookman-LightItalic 4114100 | |
182 | ||
183 | $(FONTS)/pbkd.gsf: $(BDF)/pbkd.bdf $(AFM)/Bookman-Demi.afm | |
184 | bdftops $(BDF)/pbkd.bdf $(AFM)/Bookman-Demi.afm \ | |
185 | $(FONTS)/pbkd.gsf Bookman-Demi 4113000 | |
186 | ||
187 | $(FONTS)/pbkdi.gsf: $(BDF)/pbkdi.bdf $(AFM)/Bookman-DemiItalic.afm | |
188 | bdftops $(BDF)/pbkdi.bdf $(AFM)/Bookman-DemiItalic.afm \ | |
189 | $(FONTS)/pbkdi.gsf Bookman-DemiItalic 4113100 | |
190 | ||
191 | # ---------------- Charter ---------------- | |
192 | # (No separate metrics for this font.) | |
193 | ||
194 | Charter: $(FONTS)/bchr.gsf $(FONTS)/bchri.gsf $(FONTS)/bchb.gsf \ | |
195 | $(FONTS)/bchbi.gsf | |
196 | ||
197 | $(FONTS)/bchr.gsf: $(BDF)/charR24.bdf | |
198 | bdftops $(BDF)/charR24.bdf \ | |
199 | $(FONTS)/bchr.gsf Charter-Roman 4010000 | |
200 | ||
201 | $(FONTS)/bchri.gsf: $(BDF)/charI24.bdf | |
202 | bdftops $(BDF)/charI24.bdf \ | |
203 | $(FONTS)/bchri.gsf Charter-Italic 4010100 | |
204 | ||
205 | $(FONTS)/bchb.gsf: $(BDF)/charB24.bdf | |
206 | bdftops $(BDF)/charB24.bdf \ | |
207 | $(FONTS)/bchb.gsf Charter-Bold 4011000 | |
208 | ||
209 | $(FONTS)/bchbi.gsf: $(BDF)/charBI24.bdf | |
210 | bdftops $(BDF)/charBI24.bdf \ | |
211 | $(FONTS)/bchbi.gsf Charter-BoldItalic 4011100 | |
212 | ||
213 | # ---------------- Courier ---------------- | |
214 | ||
215 | # Ghostscript has two sets of Courier fonts, a lower-quality set derived | |
216 | # from the X11R4 bitmaps, and a higher-quality set contributed by IBM | |
217 | # to X11R5 in Type 1 form. Unfortunately, the two sets don't contain | |
218 | # the same variants, and some PostScript files use Courier-Oblique rather | |
219 | # than Courier-Italic. For this reason, we keep the X11R4 Oblique fonts. | |
220 | ||
221 | Courier: $(FONTS)/cour.pfa $(FONTS)/couri.pfa $(FONTS)/courb.pfa \ | |
222 | $(FONTS)/courbi.pfa $(FONTS)/pcrro.gsf $(FONTS)/pcrbo.gsf | |
223 | # $(FONTS)/pcrr.gsf $(FONTS)/pcrb.gsf | |
224 | ||
225 | # Old Courier, longer used. | |
226 | $(FONTS)/pcrr.gsf: $(BDF)/courR24.bdf $(AFM)/courier.afm | |
227 | bdftops $(BDF)/courR24.bdf $(AFM)/courier.afm \ | |
228 | $(FONTS)/pcrr.gsf Courier 4020000 | |
229 | ||
230 | $(FONTS)/pcrro.gsf: $(BDF)/courO24.bdf $(AFM)/courier_oblique.afm | |
231 | bdftops $(BDF)/courO24.bdf $(AFM)/courier_oblique.afm \ | |
232 | $(FONTS)/pcrro.gsf Courier-Oblique 4020200 | |
233 | ||
234 | # Old Courier-Bold, no longer used. | |
235 | $(FONTS)/pcrb.gsf: $(BDF)/courB24.bdf $(AFM)/courier_bold.afm | |
236 | bdftops $(BDF)/courB24.bdf $(AFM)/courier_bold.afm \ | |
237 | $(FONTS)/pcrb.gsf Courier-Bold 4021000 | |
238 | ||
239 | $(FONTS)/pcrbo.gsf: $(BDF)/courBO24.bdf $(AFM)/courier_boldoblique.afm | |
240 | bdftops $(BDF)/courBO24.bdf $(AFM)/courier_boldoblique.afm \ | |
241 | $(FONTS)/pcrbo.gsf Courier-BoldOblique 4021200 | |
242 | ||
243 | # ---------------- Helvetica ---------------- | |
244 | ||
245 | Helvetica: $(FONTS)/phvr.gsf $(FONTS)/phvro.gsf $(FONTS)/phvrrn.gsf \ | |
246 | $(FONTS)/phvb.gsf $(FONTS)/phvbo.gsf | |
247 | ||
248 | $(FONTS)/phvr.gsf: $(BDF)/helvR24.bdf $(AFM)/helvetica.afm | |
249 | bdftops $(BDF)/helvR24.bdf $(AFM)/helvetica.afm \ | |
250 | $(FONTS)/phvr.gsf Helvetica 4030000 | |
251 | ||
252 | $(FONTS)/phvro.gsf: $(BDF)/helvO24.bdf $(AFM)/helvetica_oblique.afm | |
253 | bdftops $(BDF)/helvO24.bdf $(AFM)/helvetica_oblique.afm \ | |
254 | $(FONTS)/phvro.gsf Helvetica-Oblique 4030200 | |
255 | ||
256 | $(FONTS)/phvrrn.gsf: $(BDF)/hvmrc14.bdf $(AFM)/Helvetica-Narrow.afm | |
257 | bdftops $(BDF)/hvmrc14.bdf $(AFM)/Helvetica-Narrow.afm \ | |
258 | $(FONTS)/phvrrn.gsf Helvetica-Narrow 4030310 | |
259 | ||
260 | $(FONTS)/phvb.gsf: $(BDF)/helvB24.bdf $(AFM)/helvetica_bold.afm | |
261 | bdftops $(BDF)/helvB24.bdf $(AFM)/helvetica_bold.afm \ | |
262 | $(FONTS)/phvb.gsf Helvetica-Bold 4031000 | |
263 | ||
264 | $(FONTS)/phvbo.gsf: $(BDF)/helvBO24.bdf $(AFM)/helvetica_boldoblique.afm | |
265 | bdftops $(BDF)/helvBO24.bdf $(AFM)/helvetica_boldoblique.afm \ | |
266 | $(FONTS)/phvbo.gsf Helvetica-BoldOblique 4031200 | |
267 | ||
268 | # ---------------- New Century Schoolbook ---------------- | |
269 | ||
270 | NewCenturySchlbk: $(FONTS)/pncr.gsf $(FONTS)/pncri.gsf $(FONTS)/pncb.gsf \ | |
271 | $(FONTS)/pncbi.gsf | |
272 | ||
273 | $(FONTS)/pncr.gsf: $(BDF)/ncenR24.bdf $(AFM)/newcenturyschlbk_roman.afm | |
274 | bdftops $(BDF)/ncenR24.bdf $(AFM)/newcenturyschlbk_roman.afm \ | |
275 | $(FONTS)/pncr.gsf NewCenturySchlbk-Roman 4040000 | |
276 | ||
277 | $(FONTS)/pncri.gsf: $(BDF)/ncenI24.bdf $(AFM)/newcenturyschlbk_italic.afm | |
278 | bdftops $(BDF)/ncenI24.bdf $(AFM)/newcenturyschlbk_italic.afm \ | |
279 | $(FONTS)/pncri.gsf NewCenturySchlbk-Italic 4040100 | |
280 | ||
281 | $(FONTS)/pncb.gsf: $(BDF)/ncenB24.bdf $(AFM)/newcenturyschlbk_bold.afm | |
282 | bdftops $(BDF)/ncenB24.bdf $(AFM)/newcenturyschlbk_bold.afm \ | |
283 | $(FONTS)/pncb.gsf NewCenturySchlbk-Bold 4041000 | |
284 | ||
285 | $(FONTS)/pncbi.gsf: $(BDF)/ncenBI24.bdf $(AFM)/newcenturyschlbk_bolditalic.afm | |
286 | bdftops $(BDF)/ncenBI24.bdf $(AFM)/newcenturyschlbk_bolditalic.afm \ | |
287 | $(FONTS)/pncbi.gsf NewCenturySchlbk-BoldItalic 4041100 | |
288 | ||
289 | # ---------------- Palatino ---------------- | |
290 | ||
291 | Palatino: $(FONTS)/pplr.gsf $(FONTS)/pplri.gsf $(FONTS)/pplb.gsf \ | |
292 | $(FONTS)/pplbi.gsf | |
293 | ||
294 | $(FONTS)/pplr.gsf: $(BDF)/pal18.bdf $(AFM)/Palatino-Roman.afm | |
295 | bdftops $(BDF)/pal18.bdf $(AFM)/Palatino-Roman.afm \ | |
296 | $(FONTS)/pplr.gsf Palatino-Roman 4090000 | |
297 | ||
298 | $(FONTS)/pplri.gsf: $(BDF)/pplri.bdf $(AFM)/Palatino-Italic.afm | |
299 | bdftops $(BDF)/pplri.bdf $(AFM)/Palatino-Italic.afm \ | |
300 | $(FONTS)/pplri.gsf Palatino-Italic 4090100 | |
301 | ||
302 | $(FONTS)/pplb.gsf: $(BDF)/pplb.bdf $(AFM)/Palatino-Bold.afm | |
303 | bdftops $(BDF)/pplb.bdf $(AFM)/Palatino-Bold.afm \ | |
304 | $(FONTS)/pplb.gsf Palatino-Bold 4091000 | |
305 | ||
306 | $(FONTS)/pplbi.gsf: $(BDF)/pplbi.bdf $(AFM)/Palatino-BoldItalic.afm | |
307 | bdftops $(BDF)/pplbi.bdf $(AFM)/Palatino-BoldItalic.afm \ | |
308 | $(FONTS)/pplbi.gsf Palatino-BoldItalic 4091100 | |
309 | ||
310 | # ---------------- Symbol ---------------- | |
311 | ||
312 | Symbol: $(FONTS)/psyr.gsf | |
313 | ||
314 | $(FONTS)/psyr.gsf: $(BDF)/symb24.bdf $(AFM)/symbol.afm | |
315 | bdftops $(BDF)/symb24.bdf $(AFM)/symbol.afm \ | |
316 | $(FONTS)/psyr.gsf Symbol 4050000 SymbolEncoding | |
317 | ||
318 | # ---------------- Times Roman ---------------- | |
319 | ||
320 | TimesRoman: $(FONTS)/ptmr.gsf $(FONTS)/ptmri.gsf $(FONTS)/ptmb.gsf \ | |
321 | $(FONTS)/ptmbi.gsf | |
322 | ||
323 | $(FONTS)/ptmr.gsf: $(BDF)/timR24.bdf $(AFM)/times_roman.afm | |
324 | bdftops $(BDF)/timR24.bdf $(AFM)/times_roman.afm \ | |
325 | $(FONTS)/ptmr.gsf Times-Roman 4060000 | |
326 | ||
327 | $(FONTS)/ptmri.gsf: $(BDF)/timI24.bdf $(AFM)/times_italic.afm | |
328 | bdftops $(BDF)/timI24.bdf $(AFM)/times_italic.afm \ | |
329 | $(FONTS)/ptmri.gsf Times-Italic 4060100 | |
330 | ||
331 | $(FONTS)/ptmb.gsf: $(BDF)/timB24.bdf $(AFM)/times_bold.afm | |
332 | bdftops $(BDF)/timB24.bdf $(AFM)/times_bold.afm \ | |
333 | $(FONTS)/ptmb.gsf Times-Bold 4061000 | |
334 | ||
335 | $(FONTS)/ptmbi.gsf: $(BDF)/timBI24.bdf $(AFM)/times_bolditalic.afm | |
336 | bdftops $(BDF)/timBI24.bdf $(AFM)/times_bolditalic.afm \ | |
337 | $(FONTS)/ptmbi.gsf Times-BoldItalic 4061100 | |
338 | ||
339 | # ---------------- Ugly ---------------- | |
340 | ||
341 | # This font, and only this font, is stored in the main executable | |
342 | # directory for Ghostscript, not the fonts directory. | |
343 | ||
344 | Ugly: uglyr.gsf | |
345 | ||
346 | uglyr.gsf: ugly10.bdf | |
347 | bdftops ugly10.bdf uglyr.gsf Ugly 4000000 | |
348 | ||
349 | # ---------------- Utopia ---------------- | |
350 | # (Already in Type 1 form.) | |
351 | ||
352 | Utopia: $(FONTS)/utrg.pfa $(FONTS)/uti.pfa $(FONTS)/utb.pfa \ | |
353 | $(FONTS)/utbi.pfa | |
354 | ||
355 | # ---------------- Zapf Chancery ---------------- | |
356 | ||
357 | ZapfChancery: $(FONTS)/zcr.gsf $(FONTS)/zcri.gsf $(FONTS)/zcro.gsf \ | |
358 | $(FONTS)/zcb.gsf | |
359 | ||
360 | $(FONTS)/zcr.gsf: $(BDF)/zcr24.bdf $(AFM)/ZapfChancery-Roman.afm | |
361 | bdftops $(BDF)/zcr24.bdf $(AFM)/ZapfChancery-Roman.afm \ | |
362 | $(FONTS)/zcr.gsf ZapfChancery 4070000 | |
363 | ||
364 | # We fake italic with oblique, but use the italic metrics. | |
365 | $(FONTS)/zcri.gsf: $(BDF)/zcro24.bdf $(AFM)/ZapfChancery-MediumItalic.afm | |
366 | bdftops $(BDF)/zcro24.bdf $(AFM)/ZapfChancery-MediumItalic.afm \ | |
367 | $(FONTS)/zcro.gsf ZapfChancery-MediumItalic 4070100 | |
368 | ||
369 | $(FONTS)/zcro.gsf: $(BDF)/zcro24.bdf $(AFM)/ZapfChancery-MediumItalic.afm | |
370 | bdftops $(BDF)/zcro24.bdf $(AFM)/ZapfChancery-MediumItalic.afm \ | |
371 | $(FONTS)/zcro.gsf ZapfChancery-Oblique 4070200 | |
372 | ||
373 | $(FONTS)/zcb.gsf: $(BDF)/zcb30.bdf $(AFM)/ZapfChancery-Bold.afm | |
374 | bdftops $(BDF)/zcb30.bdf $(AFM)/ZapfChancery-Bold.afm \ | |
375 | $(FONTS)/zcb.gsf ZapfChancery-Bold 4071000 | |
376 | ||
377 | # ---------------- Zapf Dingbats ---------------- | |
378 | ||
379 | ZapfDingbats: $(FONTS)/pzdr.gsf | |
380 | ||
381 | $(FONTS)/pzdr.gsf: $(BDF)/pzdr.bdf $(AFM)/ZapfDingbats.afm | |
382 | bdftops $(BDF)/pzdr.bdf $(AFM)/ZapfDingbats.afm \ | |
383 | $(FONTS)/pzdr.gsf ZapfDingbats 4100000 |