Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!mcsun!hp4nl!nlbull!jos From: jos@bull.nl (Jos Vos) Newsgroups: comp.lang.postscript Subject: Re: 0 0 moveto (+) show: how to center the (+)? Message-ID: <1062@nlbull.bull.nl> Date: 3 Jun 91 11:06:09 GMT References: <9106020627.AA01346@einstein.physics.buffalo.edu> Organization: Bull, P.O. Box 22859, NL-1100 DJ Amsterdam, The Netherlands Lines: 21 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 >currentpoint [The lower left corner is at currentpoint]. How do I >symbol centered at currentpoint ? /centershow { dup stringwidth pop 2 div neg 0 rmoveto show } def Now use: x y moveto (string) centershow -- -- Jos Vos (UUCP: ...!{uunet,mcsun,hp4nl}!nlbull!jos) -- Bull Nederland NV, Product Support Unix, Amsterdam, The Netherlands