Path: 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: Date: 6 Jun 91 21:38:06 GMT Organization: 40.34N / 74.45W Sol 3 Lines: 30 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