🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #6206

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

#6206
From: Woody Baker Eagle Signal
Date: Tue, 04 Jun 1991 05:02
14 lines
1028 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
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
Technical Details
Message-ID: <1991Jun4.050215.4185@chinacat.unicom.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!chinacat!woody
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!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