Ghostscript references a font via
its Fontmap
. This must be modified in
a similar way to the X11
fonts.dir
.
Ghostscript can use either the
.pfa
or the .pfb
format fonts. Using the font from the previous example, here is
how to use it with
Ghostscript:
Put the font in Ghostscript's font directory%
cd /usr/local/share/ghostscript/fonts
%
ln -s /usr/local/share/fonts/type1/showboat.pfb .
Edit Fontmap so Ghostscript knows about the font%
cd /usr/local/share/ghostscript/4.01
%
ex Fontmap :$a /Showboat (showboat.pfb) ; % From CICA /fonts/atm/showboat . :wq
Use Ghostscript to examine the font%
gs prfont.ps
Aladdin Ghostscript 4.01 (1996-7-10) Copyright (C) 1996 Aladdin Enterprises, Menlo Park, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Loading Times-Roman font from /usr/local/share/ghostscript/fonts/tir_____.pfb... /1899520 581354 1300084 13826 0 done. GS>Showboat DoFont
Loading Showboat font from /usr/local/share/ghostscript/fonts/showboat.pfb... 1939688 565415 1300084 16901 0 done. >>showpage, press <return> to continue<< >>showpage, press <return> to continue<< >>showpage, press <return> to continue<< GS>quit
References: fonts.txt
in the
Ghostscript 4.01 distribution
All FreeBSD documents are available for download at https://download.freebsd.org/ftp/doc/
Questions that are not answered by the
documentation may be
sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.