
Output via Printing
|
551
{pop pop pop}
{runlibfile} ifelse
/CIDFont findresource
[ exch ] composefont pop
Place the 4. Munhwa-Regular-KSC-EUC-H.gsf le and KSC-EUC-H CMap resource in
the font path (such as /usr/lib/ghostscript/fonts/).
Add a “fontmap” entry for Munhwa-Regular to the 5. Fontmap le:
% CID-Keyed font
% Korean(Adobe)
/Munhwa-Regular-KSC-EUC-H (Munhwa-Regular-KSC-EUC-H.gsf);
With all of these steps completed, you can simply use PostScript commands to use the 6.
CID-keyed font. What follows demonstrates how this Korean CID-keyed font can be
used in Ghostscript (user-entered commands are emboldened):
GS> /Munhwa-Regular-KSC-EUC-H findfont 100 scalefont setfont
Loading Munhwa-Regular-KSC-EUC-H font from ./Munhwa-Regular-KSC-EUC-H.gsf... 411
7896 2702441 4104584 2791079 0 done.
GS> 100 100 moveto <B0A1 B0A2> show showpage
Passing Characters to PostScript
ere is more than one method for passing characters to PostScript as an argument to
the show operator. e show operator is quite important because it is the only method to
display text using fonts. e ndfont and selectfont operators are used to indicate what
font to use for the characters passed to the show operator. When handling normal ASCII
text, the standard convention is to simply pass characters as is to the show operator using
parentheses, as illustrated by the following PostScript program:
%!
/Courier findfont 12 scalefont ...