Article View: adobe.postscript.programming
Article #572Re: Printing a "registered" trademark
From: tgreer
Date: Wed, 07 Apr 2004 17:34
Date: Wed, 07 Apr 2004 17:34
41 lines
1667 bytes
1667 bytes
Step one: create a copy of the original font dictionary. This is because font dictionaries are read-only.
A clever way to do this:
<< originalFont findfont {} forall >>
Which will leave you with a font dictionary on the stack.
(You'll want to precede that with a name for your new font, ie /ISOfont)
Make this your current dictionary with "begin".
Change the /Encoding entry:
/Encoding ISOLatin1Encoding 256 array copy def
Pop the dictionary of the operand stack: end
Make this dictionary a font: definefont pop
Note: you might want to reinsert some of the original encodings. I put in the bullet, hyphen, and trademark encodings.
Complete code:
/ISOfont
<< /Courier findfont {} forall >>
begin
/Encoding ISOLatin1Encoding 256 array copy def
currentdict
Encoding 8#267 /bullet put
Encoding 8#055 /hyphen put
Encoding 8#231 /trademark put
end
definefont pop
Usage:
/ISOfont 24 selectfont
Thomas D. Greer
www.tgreer.com
Technical Details
Message-ID:
<2cd119d5.0@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news.ntli.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2cd119d5.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c61a,68379b58c710a10 X-Google-Attributes: gid10c61a,public X-Google-ArrivalTime: 2004-04-07 10:37:52 PST From: tgreer@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news.ntli.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.postscript.programming Subject: Re: Printing a "registered" trademark Message-ID: <2cd119d5.0@webx.la2eafNXanI> Date: Wed, 7 Apr 2004 10:34:53 -0700 References: <2cd119d5.-1@webx.la2eafNXanI> Lines: 44 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit