🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #6237

height of a string

#6237
From: Bob Mende Pie
Date: Thu, 06 Jun 1991 21:38
30 lines
1275 bytes
  If I have a string (String) how can I tell how high the font will be ...
What I want to do is have do somthing like this (please escuse the pseudo
postscript)

100 100 moveto
currentpoint (string 1) show moveto
0 (string 1) stringheight rmoveto
(string 2) show 

notes:
	string stringheight => int 	% returns height of string

Output:
	string 2
	string 1	

   The stringwidth operator return s X and a Y value, but the y seems only
0 unless the font is rotated.

If anyone knows how to use the information in the /fontBBox to get this I
would like to know... it seems to return numbers that are no in any
coordinate system that I can use.


					/Bob...
{...}!rutgers!mende         mende@cs.rutgers.edu          mende@zodiac.bitnet
-- 
					/Bob...
{...}!rutgers!mende         mende@cs.rutgers.edu          mende@zodiac.bitnet
Technical Details
Message-ID: <Jun.6.17.38.04.1991.29830@athos.rutgers.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!aramis.rutgers.edu!athos.rutgers.edu!mende

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!aramis.rutgers.edu!athos.rutgers.edu!mende
From: mende@athos.rutgers.edu (Bob Mende Pie)
Newsgroups: comp.lang.postscript
Subject: height of a string
Message-ID: <Jun.6.17.38.04.1991.29830@athos.rutgers.edu>
Date: 6 Jun 91 21:38:06 GMT
Organization: 40.34N / 74.45W Sol 3
Lines: 30