Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!chinacat!woody From: woody@chinacat.unicom.com (Woody Baker @ Eagle Signal) Newsgroups: comp.lang.postscript Subject: Re: 0 0 moveto (+) show: how to center the (+)? Message-ID: <1991Jun4.050215.4185@chinacat.unicom.com> Date: 4 Jun 91 05:02:15 GMT References: <9106020627.AA01346@einstein.physics.buffalo.edu> Organization: a guest of Unicom Systems Development, Austin Lines: 14 In article <9106020627.AA01346@einstein.physics.buffalo.edu> xiaofei@EINSTEIN.PHYSICS.BUFFALO.EDU (X. F. Wang) writes: >I need something > >x y moveto >( symbol ) show > >in drawing agraph. The probem is the symbol is not centered at try something like this x (symbol) stringwidth pop 2 div sub y moveto (symbol) show This should compute the width of the symbol, divide it by 2, subtract that result from the x direction, put the y coordinate on the stack on top of the x coordinate, ready for the moveto.... Cheers Woody