home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / g / gs252src.zip / GS252 / FONTS.MAK < prev    next >
Text File  |  1992-06-18  |  14KB  |  392 lines

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