Article View: comp.lang.postscript
Article #7418Re: FontBBox definition
From: Geoffrey Cooper
Date: Tue, 16 Aug 1988 22:36
Date: Tue, 16 Aug 1988 22:36
26 lines
1419 bytes
1419 bytes
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
Technical Details
Message-ID:
<1787@imagen.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!seismo!sundc!pitstop!sun!imagen!geofReferences:
<21@cwjcc.CWRU.Edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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