🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #6480

Re: Adding fonts to Ghostscript 2.52

#6480
From: Jos Vos
Date: Sun, 24 Jan 1993 10:03
55 lines
2814 bytes
churchyh@ccwf.cc.utexas.edu (Henry Churchyard) writes:

>In article <1jloht$70b@agate.berkeley.edu> colemanr@garnet.berkeley.edu () writes:

>>3. Do I have to fiddle with the Fontmap file that comes with Ghostscript,
>>   and if so, do I have to recompile Ghostscript (I don't have the source)?

>   Actually, this is an _alternative_ to the ()run method, and a
>rather better one, since:

>        1.You only have to edit one file once.
>        2.You can load fonts in .PFB format.

>   And no, you don't have to recompile (that's the point of having a
>separate configuration file).

A few extra comments on this:

-  You can always add your own fonts at the end of the Fontmap: only the
   LAST appearance of a fontname in the Fontmap file is taken into account
   (this is important in case you want to use official Adobe versions of
   fonts already listed in the default Fontmap file).

-  Because I did't like changing the Fontmap file itself, I made a patch
   to support a Fontmap.local file containing all the fonts available
   on your system and to support a personal Fontmap file, which name can
   be found in the environment variable GS_FONTMAP.
   These 3 Fontmap files now act as if there was one big Fontmap file
   being the concatenation of Fontmap, Fontmap.local and the personal
   Fontmap file (in that order).

-----------START-OF-PATCH------------
*** gs_fonts.ps-	Mon Nov 16 14:28:19 1992
--- gs_fonts.ps	Mon Nov 16 14:34:40 1992
***************
*** 41,47 ****
--- 41,53 ----
       counttomark 3 sub { pop } repeat put
       1 index
     } bind def
+   % Process the standard Ghostscript fontmap.
    (Fontmap) run
+   % Process an optional local Ghostscript fontmap, named Fontmap.local.
+   (Fontmap.local) findlibfile { pop run } { pop } ifelse
+   % Process an optional personal Ghostscript fontmap, which name can be
+   % specified via the GS_FONTMAP environment variable.
+   (GS_FONTMAP) getenv { findlibfile { pop run } { pop } ifelse } if
  end
  pop pop		% pop the mark and the copy of the dictionary
  userdict exch /Fontmap exch put
-----------END-OF-PATCH------------

-- 
--    Jos Vos <jos@bull.nl>   (UUCP: ...!{uunet,mcsun,sun4nl}!nlbull!jos)
--    Bull Nederland NV, Product Support Unix, Amsterdam, The Netherlands
Technical Details
Message-ID: <C1CryD.DLv@bull.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!nlbull!wilg!jos
References: <1jloht$70b@agate.berkeley.edu> <1jmr8iINN2ae@geraldo.cc.utexas.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!nlbull!wilg!jos
From: jos@bull.nl (Jos Vos)
Subject: Re: Adding fonts to Ghostscript 2.52
Message-ID: <C1CryD.DLv@bull.nl>
Sender: news@bull.nl (USENET Administrator Bull Netherlands)
Nntp-Posting-Host: berk.bull.nl
Organization: Bull, P.O. Box 22859, NL-1100 DJ Amsterdam, The Netherlands
References: <1jloht$70b@agate.berkeley.edu> <1jmr8iINN2ae@geraldo.cc.utexas.edu>
Date: Sun, 24 Jan 1993 10:03:49 GMT
Lines: 55