home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / postscri / 6426 < prev    next >
Encoding:
Text File  |  1993-01-24  |  2.7 KB  |  68 lines

  1. Newsgroups: comp.lang.postscript
  2. Path: sparky!uunet!mcsun!sun4nl!nlbull!wilg!jos
  3. From: jos@bull.nl (Jos Vos)
  4. Subject: Re: Adding fonts to Ghostscript 2.52
  5. Message-ID: <C1CryD.DLv@bull.nl>
  6. Sender: news@bull.nl (USENET Administrator Bull Netherlands)
  7. Nntp-Posting-Host: berk.bull.nl
  8. Organization: Bull, P.O. Box 22859, NL-1100 DJ Amsterdam, The Netherlands
  9. References: <1jloht$70b@agate.berkeley.edu> <1jmr8iINN2ae@geraldo.cc.utexas.edu>
  10. Date: Sun, 24 Jan 1993 10:03:49 GMT
  11. Lines: 55
  12.  
  13. churchyh@ccwf.cc.utexas.edu (Henry Churchyard) writes:
  14.  
  15. >In article <1jloht$70b@agate.berkeley.edu> colemanr@garnet.berkeley.edu () writes:
  16.  
  17. >>3. Do I have to fiddle with the Fontmap file that comes with Ghostscript,
  18. >>   and if so, do I have to recompile Ghostscript (I don't have the source)?
  19.  
  20. >   Actually, this is an _alternative_ to the ()run method, and a
  21. >rather better one, since:
  22.  
  23. >        1.You only have to edit one file once.
  24. >        2.You can load fonts in .PFB format.
  25.  
  26. >   And no, you don't have to recompile (that's the point of having a
  27. >separate configuration file).
  28.  
  29. A few extra comments on this:
  30.  
  31. -  You can always add your own fonts at the end of the Fontmap: only the
  32.    LAST appearance of a fontname in the Fontmap file is taken into account
  33.    (this is important in case you want to use official Adobe versions of
  34.    fonts already listed in the default Fontmap file).
  35.  
  36. -  Because I did't like changing the Fontmap file itself, I made a patch
  37.    to support a Fontmap.local file containing all the fonts available
  38.    on your system and to support a personal Fontmap file, which name can
  39.    be found in the environment variable GS_FONTMAP.
  40.    These 3 Fontmap files now act as if there was one big Fontmap file
  41.    being the concatenation of Fontmap, Fontmap.local and the personal
  42.    Fontmap file (in that order).
  43.  
  44. -----------START-OF-PATCH------------
  45. *** gs_fonts.ps-    Mon Nov 16 14:28:19 1992
  46. --- gs_fonts.ps    Mon Nov 16 14:34:40 1992
  47. ***************
  48. *** 41,47 ****
  49. --- 41,53 ----
  50.        counttomark 3 sub { pop } repeat put
  51.        1 index
  52.      } bind def
  53. +   % Process the standard Ghostscript fontmap.
  54.     (Fontmap) run
  55. +   % Process an optional local Ghostscript fontmap, named Fontmap.local.
  56. +   (Fontmap.local) findlibfile { pop run } { pop } ifelse
  57. +   % Process an optional personal Ghostscript fontmap, which name can be
  58. +   % specified via the GS_FONTMAP environment variable.
  59. +   (GS_FONTMAP) getenv { findlibfile { pop run } { pop } ifelse } if
  60.   end
  61.   pop pop        % pop the mark and the copy of the dictionary
  62.   userdict exch /Fontmap exch put
  63. -----------END-OF-PATCH------------
  64.  
  65. -- 
  66. --    Jos Vos <jos@bull.nl>   (UUCP: ...!{uunet,mcsun,sun4nl}!nlbull!jos)
  67. --    Bull Nederland NV, Product Support Unix, Amsterdam, The Netherlands
  68.