Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uflorida!haven!umd5!uvaarpa!galen!paw3c From: paw3c@galen.acc.virginia.edu (Pat Wilson) Newsgroups: comp.lang.postscript Subject: Block Center? Message-ID: <235@galen.acc.virginia.edu> Date: 26 Aug 88 13:45:11 GMT Organization: AT&T System Admin, Uva. Med Center Lines: 14 I'm writing PostScript to generate NIH grant forms and fill them in. I've gotten all the forms created, but now I've arrived at the point where I have to figure out how to center an arbitrarily sized block of text (an address, for example) within a bounded space on the form. I've been playing with various ways to do this, but none of them seem very elegant. Has anyone come up with an algorithm (or even a heuristic) to do this? Thanks. -- Pat Wilson paw3c@acc.virginia.edu || uunet!virginia!paw3c || paw3c@virginia.BITNET