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

Home » Public Forums » archive » IDLgrAxis determining character dimensions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDLgrAxis determining character dimensions [message #54868] Mon, 16 July 2007 13:50
jkj is currently offline  jkj
Messages: 48
Registered: April 2007
Member
After creating an IDLgrAxis object, I would like to be able to access
or calculate or estimate the height/width of the text. Using an
IDLgrFont object I can specify the font size that will be used but I
don't understand how to convert, say 11 point Helvetica, to either
data or device units.

Effectively, what I would like to do is acquire information that a
"compute_dimensions" method would if the axis object had such a method
(it only has REcompute_dimensions, which does not return any value).
I do understand that in data units the size of the text will depend on
both the x and y data values. I found this from Fanning while
searching the newsgroup:

"Text characters are sized according to a text "box", whose width and
height are given in the "data" units of your arbitrary coordinate
system. (See the CHAR_DIMENSIONS keyword.)"

and what I am looking for is an understanding of how to arrive at
reasonable values to supply the char_dimensions keyword - I do want to
be able to set these values explicitly. Any ideas? Am I missing
something obvious? Right now I'm guessing I need to study the code "/
lib/utilities/idlexobjview__define.pro", so I'll get to that...

Thanks,
-Kevin
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: CONVERT INTERPOLATION TO GEOTIF
Next Topic: Re: two issues with julian dates

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

Current Time: Wed Oct 08 18:41:16 PDT 2025

Total time taken to generate the page: 0.00600 seconds