height = stringheight(HWIN, fontname, fontsize)
Determine width and height of a string in pixels for a specific font.
fontname, fontsize:
Font attributes
| height | any | scalar double (with integer value)
NOTES
the 4tch component of Extent (=height) only depends on font and
fontsize, not on fontweight of string
-a-
stringdimensions may be used as an alternative for get(h,'extent').
-b-
The advantage of stringdimensions is that it does not relay of a
uicontrol object
-c-
When uicontrol is present, the extent method is generally faster
-d-
On a uicontrol extent returns a height value that is 4pts higher
|