topSTR_SIZE
Graphics, Widget
Return value
thisCharSize. This is the size the specified string should be set
to if you want to produce output of the specified target
width. The value is in standard character size units where
1.0 is the standard character size.
Parameters
string
in
required
targetWidth
in
optional
Keywords
INITSIZE
STEP
Examples
To make the string "Happy Holidays" take up 30% of the width of
the current graphics window, type this:
XYOUTS, 0.5, 0.5, ALIGN=0.5, "Happy Holidays", $
CHARSIZE=STR_SIZE("Happy Holidays", 0.3)
Version history
Version
$Id: str_size.pro 142 2006-07-21 12:47:49Z navarro $
History
Written by: David Fanning, 17 DEC 96.
Added a scaling factor to take into account the aspect ratio
of the window in determing the character size. 28 Oct 97. DWF