🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #2754

Re: FontBBox in Font Dictionaries

#2754
From: Glenn Reid
Date: Thu, 09 Aug 1990 09:08
29 lines
1389 bytes
In article <9078@ubc-cs.UUCP> phillips@cs.ubc.ca (George Phillips) writes:
:I'm confused about the FontBBox entry that is supposed to be in every
:font dictionary.  According to my copy of the red book, FontBBox is
:a 4 element array.  But on both a NeXT machine and a laserwriter it
:appears to be 4 numbers.  That is, if you do something like:
:
:/Helvetica findfont begin FontBBox end
:
:you'll have 
:	-166 -244 1000 966
:on the stack instead of the array
:	[ -166 -244 1000 966 ]
:
:So why does it push 4 numbers instead of the array?

It's an executable array (otherwise known as a procedure).  You can
get it to land on the stack by using

/Helvetica findfont begin /FontBBox load end

and you can use the "cvlit" operator if you want it to be a literal
array for some reason.

/Glenn

-- 
 Glenn Reid				PostScript/NeXT consultant
 glenn@heaven.woodside.ca.us		Independent Software Developer
 ..{adobe,next}!heaven!glenn		415-851-1785
Technical Details
Message-ID: <239@heaven.woodside.ca.us>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!decwrl!adobe!heaven!glenn
References: <9078@ubc-cs.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!decwrl!adobe!heaven!glenn
From: glenn@heaven.woodside.ca.us (Glenn Reid)
Newsgroups: comp.lang.postscript
Subject: Re: FontBBox in Font Dictionaries
Message-ID: <239@heaven.woodside.ca.us>
Date: 9 Aug 90 09:08:28 GMT
References: <9078@ubc-cs.UUCP>
Reply-To: glenn@heaven.UUCP (Glenn Reid)
Organization: Skyline Press, Woodside CA
Lines: 29