🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #6188

Re: 0 0 moveto (+) show: how to center the (+)?

#6188
From: Jos Vos
Date: Mon, 03 Jun 1991 11:06
21 lines
1075 bytes
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 <jos@bull.nl>    (UUCP: ...!{uunet,mcsun,hp4nl}!nlbull!jos)
--    Bull Nederland NV, Product Support Unix, Amsterdam, The Netherlands
Technical Details
Message-ID: <1062@nlbull.bull.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!mcsun!hp4nl!nlbull!jos
References: <9106020627.AA01346@einstein.physics.buffalo.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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