comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Q: Length (on screen) of text
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Q: Length (on screen) of text [message #6736] Fri, 02 August 1996 00:00 Go to previous message
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
In article <4tt652$fr1@kwuz.nerc-keyworth.ac.uk>, wmc@unixa.nerc-keyworth.ac.uk (William Connolley) writes:
|> I want to annotate a map with lots of text representing various stations. I
|> don't want these to overlap. So I have to know how big they are going to be...
|> so I can jiggle them a bit if they are going to overlap. But there doesn't seem
|> to be any IDL routine to "measure" a string thats going to be plotted.
|>
|> Any ideas?

Look at the documentation for the WIDTH keyword in XYOUTS.

To make sure e.g., that a text is shorter than the width of
a window, something like this should do:

DEVICE,GET_GRAPHICS_FUNCTION=OLDGRAPH
DEVICE,SET_GRAPHICS_FUNCTION=5 ; GXnoop --
xyouts,0.,0.,text,width=text_width,/normal
device,set_graphics_function=OLDGRAPH
xyouts,0.,0.,text,charsize=1./width ;; Adjust charsize to fit.

Stein Vidar
[Message index]
 
Read Message
Read Message
Previous Topic: black and white xterminals and idl
Next Topic: Q: Length (on screen) of text

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 15:40:47 PDT 2025

Total time taken to generate the page: 2.95773 seconds