Article View: comp.lang.postscript
Article #6202Re: 0 0 moveto (+) show: how to center the (+)?
From: X. F. Wang
Date: Tue, 04 Jun 1991 04:21
Date: Tue, 04 Jun 1991 04:21
25 lines
1397 bytes
1397 bytes
/* jos@bull.nl (Jos Vos) wrote */:
* 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
This does not get (string) vertically centered.
--
(___) | Xiaofei Wang | (___)
(o o) | Physics Department / 239 Fronczak Hall | (o o)
/-------\ / | State University of New York at {Buffalo} | \ /-------\
/ | ||O | {Buffalo}, New York 14260 | O|| | \
Technical Details
Message-ID:
<78799@eerie.acsu.Buffalo.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!ub!acsu.buffalo.eduReferences:
<9106020627.AA01346@einstein.physics.buffalo.edu> <1062@nlbull.bull.nl>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!ub!acsu.buffalo.edu From: xiaofei@acsu.buffalo.edu (X. F. Wang) Newsgroups: comp.lang.postscript Subject: Re: 0 0 moveto (+) show: how to center the (+)? Message-ID: <78799@eerie.acsu.Buffalo.EDU> Date: 4 Jun 91 04:21:22 GMT References: <9106020627.AA01346@einstein.physics.buffalo.edu> <1062@nlbull.bull.nl> Sender: news@acsu.Buffalo.EDU Organization: SUNY Buffalo Lines: 25 Nntp-Posting-Host: autarch.acsu.buffalo.edu