Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!umriscc!franklin.ee.umr.edu From: jmd@franklin.ee.umr.edu (Jim Dumser) Newsgroups: comp.lang.postscript Subject: limitcheck in flattenpath Message-ID: <1642@umriscc.isc.umr.edu> Date: 12 Nov 90 18:32:54 GMT Sender: news@umriscc.isc.umr.edu Reply-To: jmd@ee.umr.edu (Jim Dumser) Organization: University of Missouri - Rolla Lines: 28 Originator: jmd@franklin.ee.umr.edu I've been trying to hand code some figures in postscript, but I keep getting limitcheck errors in flattenpath when trying to center text. It doesn't happen for all strings; only for longer strings. Basically, my routine to center text calls 'hiwi': /hiwi {gsave newpath 0 0 moveto true charpath flattenpath pathbbox 4 2 roll pop pop grestore} def which returns dx dy on the stack. When I call it as (Non-inverting Op Amp Circuit) hiwi I get a limitcheck. Removing ' Circuit' from the string, it runs fine. (I'm using 15 pt Times-Roman, but point size is irrelevant.) Both work fine when fed to ralpage. The printer is a LaserWriter. Anyone see something wrong with my code? A workaround perhaps (other than printing 2 strings :-) ? Jim +-------------------------------------------------------+ | The fear of the Lord is the beginning of knowledge, | | but fools despise wisdom and discipline. Proverbs 1:7 | |-------------------------------------------------------| | Internet: jmd@ee.umr.edu | M S - D O S . . . | | UUCP: ...uunet!umree!jmd | Just say "NO!" | +-------------------------------------------------------+