Article View: comp.lang.postscript
Article #4865Re: load operator
From: Nobody you know
Date: Thu, 28 Feb 1991 21:36
Date: Thu, 28 Feb 1991 21:36
32 lines
1332 bytes
1332 bytes
In article <1991Feb26.010153.5370@kfw.COM> dan@kfw.COM (Dan Mick) writes: > Should load work on a non-name-type operand? > > In other words would you expect this to work: > > (Times-Roman) load setfont > > , or does it have to be > > (Times-Roman) cvn load setfont > Load will work on any type of operand... you can associate a value in a dictionary with any type of key (except a null object.) Note that strings are converted to names automatically when used as keys, so (name) (Kevin) def /name load and /name (Kevin) def (name) load will both return (Kevin) on the stack. (See pg. 30 of Red Book 1 or pg. 40 of Red Book 2.) Of course, neither of your examples will work unless you've defined a font dictionary with the name /Times-Roman... otherwise you're missing a findfont! --Kevin Andresen [kevina@apple.com] "You take the wind right out of my sails/It must be luff, it must be luff"
Technical Details
Message-ID:
<12334@goofy.Apple.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!apple.com!kevinaReferences:
<1991Feb26.010153.5370@kfw.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!apple.com!kevina From: kevina@apple.com (Nobody you know) Newsgroups: comp.lang.postscript Subject: Re: load operator Message-ID: <12334@goofy.Apple.COM> Date: 28 Feb 91 21:36:19 GMT References: <1991Feb26.010153.5370@kfw.COM> Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 32