Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!imagen!geof From: geof@imagen.UUCP (Geoffrey Cooper) Newsgroups: comp.lang.postscript Subject: Re: FontBBox definition Summary: Actually it IS an array Keywords: FontBBox PostScript Message-ID: <1787@imagen.UUCP> Date: 16 Aug 88 22:36:31 GMT References: <21@cwjcc.CWRU.Edu> Distribution: na Organization: IMAGEN Corporation, Santa Clara, CA 95052-8101 Lines: 26 In article <21@cwjcc.CWRU.Edu>, bammi@dsrgsun.ces.CWRU.edu (Jwahar R. Bammi) writes: > Can someone shed some light on the following: > > - The `red' book defines FontBBox as an array type (of 4 elements). > > - On the Apple LaserWriter and the Apple LaserWriter-II/NTX > FontBBox pushes four values on the stack (not in an array). Actually, it IS an array, but by convention of the built-in fonts (not mentioned in the RedBook... (did I mention that already?)) an EXECUTABLE array. So if you do something like: /Times-Roman findfont begin FontBBox the interpreter will EXECUTE the array. Executing an array containing 4 numbers is equivalent to pushing them on the stack. So all the implementations are right. Some PS code uses this feature to be more concise (probably not significantly more efficient). To get the array itself, try: /Times-Roman findfont /FontBBox get - Geof -- UUCP: {decwrl,sun}!imagen!geof ARPA: imagen!geof@decwrl.dec.com