🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #575

Changing resident font name

#575
From: Steven Martin
Date: Sat, 17 Jun 1989 14:42
30 lines
1688 bytes
I am using a TI OmniLaser 2106 with a Macintosh.  One of the resident
fonts is named improperly.  While the Mac generates
Helvetica-Narrow-BoldOblique, the resident font name is
Helvetica-Condensed-BoldObl.  The Narrow/Condensed problem was easy
enough to fix by modifying the FOND resource but the
BoldOblique/BoldObl problem is a little more difficult since the
Omnilaser uses Bold and Oblique seperately but combines them as
BoldObl, he Mac font system can't handle it.  My current solution is
to execute the following code (from page 98 of the Red Book):

/Helvetica-Condensed-BoldObl findfont
dup length dict /newdict exch def
 {1 index /FID ne
   {newdict 3 1 roll put}
   {pop pop}
  ifelse
 } forall

/Helvetica-Condensed-BoldOblique definefont pop

This creates a new copy of the font and then defines it with my new
name.  Is this the best way to do this?  Is it taking up too much
memory? I'm on my second day with the Red and Blue Books, I'd
appreciate any advice.


Steve Martin            USENET: {ctvax,im4u,texsun,rice}!ti-csl!martin
                        ARPANET: SMARTIN@CSC.TI.COM  COMPUSERVE: 72727,1471
                        GENIE: S.MARTIN8    PHONE: (214)-995-0698, 404-1061
What I am is what I am, are you what you are or what?
Technical Details
Message-ID: <81398@ti-csl.csc.ti.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sun-barr!texsun!pollux!ti-csl!m2!martin

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!sun-barr!texsun!pollux!ti-csl!m2!martin
From: martin@m2.csc.ti.com (Steven Martin)
Newsgroups: comp.lang.postscript
Subject: Changing resident font name
Message-ID: <81398@ti-csl.csc.ti.com>
Date: 17 Jun 89 14:42:14 GMT
Sender: news@ti-csl.csc.ti.com
Reply-To: martin@m2.UUCP (Steven Martin)
Organization: TI Computer Science Center, Dallas
Lines: 30