get-window-text-extent in Miscellaneous
Returns the pixel size of a string drawn as a window's label or value.
See also
get-text-extent .
(get-window-text-extent -> two exact non-negative integers: width and height
string font)
string : string
font : font% object
Returns the extent of the given string drawn with the given font. For
information about the font used to draw a window's label or value, see
set-label-font and
set-control-font.