Thread View: comp.lang.postscript
4 messages
4 total messages
Started by colemanr
Thu, 21 Jan 1993 08:57
Adding fonts to Ghostscript 2.52
Author: colemanr
Date: Thu, 21 Jan 1993 08:57
Date: Thu, 21 Jan 1993 08:57
17 lines
1004 bytes
1004 bytes
I would like to use more/different fonts than those supplied with the Ghostscript 2.52 distribution. Can I do this?? If so, how? 1. I read somewhere that putting a command similar to (c:\\psfonts\\fontfile) run at the start of my ghostscript file will load a font stored in "fontfile". Is this correct ? 2. I presume that I should purchase "Adobe Type 1" fonts? 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)? 4. Is there anything else that I should know about doing this? Any help would be appreciated. -- Ron
Re: Adding fonts to Ghostscript 2.52
Author: Henry Churchyard
Date: Thu, 21 Jan 1993 18:49
Date: Thu, 21 Jan 1993 18:49
23 lines
1351 bytes
1351 bytes
In article <1jloht$70b@agate.berkeley.edu> colemanr@garnet.berkeley.edu () writes:
>
>1. I read somewhere that putting a command similar to
> (c:\\psfonts\\fontfile) run
>at the start of my ghostscript file will load a font stored in "fontfile".
>Is this correct ?
Yes,but only if "fontfile" is in plaintext (.PFA) format, rather
than in binary (.PFB) format.
>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).
--
--Henry Churchyard churchyh@ccwf.cc.utexas.edu
Re: Adding fonts to Ghostscript 2.52
Author: Ronald Chan
Date: Sun, 24 Jan 1993 08:07
Date: Sun, 24 Jan 1993 08:07
42 lines
2449 bytes
2449 bytes
]From: colemanr@garnet.berkeley.edu ()
]Subject: Adding fonts to Ghostscript 2.52
]Date: 21 Jan 1993 08:57:33 GMT
]
]I would like to use more/different fonts than those supplied with the
]Ghostscript 2.52 distribution. Can I do this?? If so, how?
]
]1. I read somewhere that putting a command similar to
] (c:\\psfonts\\fontfile) run
]at the start of my ghostscript file will load a font stored in "fontfile".
]Is this correct ?
]
]2. I presume that I should purchase "Adobe Type 1" fonts?
]
]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)?
]
]4. Is there anything else that I should know about doing this?
I don't know about question 1.
For the rest... yes, you can use Adobe type 1 fonts with GhostScript. All you
have to do is load the FONTMAP file into a text editor. Put that actual font
name on the left (you can get this info by peeking at the AFM file) and then
put the corresponding filename (the way it appears on the disc) in parantheses
on the right. Just study the way the rest of the file list the fonts and
follow the format. If you purchase Adobe versions of Times, Helv, or other
fonts that have GS equivalents, simply replace the filename in parantheses with
the new one.
You don't have to recompile.
Well, this is true at least for my version of GhostScript. The source code has
been adapted to many platforms, so what I say might now apply to you.
**------------------------------------**------------------------------------**
|| Ronald Chan [rchan@terapin.com ] || USDA Agricultural Research Service ||
|| [rchan@tatertot.com] || Albany, California ||
|| || ||
|| A Pocket Knight *--{------------- || [Internet Address Pending] ||
**------------------------------------**------------------------------------**
Re: Adding fonts to Ghostscript 2.52
Author: Jos Vos
Date: Sun, 24 Jan 1993 10:03
Date: Sun, 24 Jan 1993 10:03
55 lines
2814 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads