# Function: stringheight

## CALL:

height = stringheight(HWIN, fontname, fontsize)

## DESCRIPTION:

Determine width and height of a string in pixels for a specific font.

## INPUT:

         fontname, fontsize:
             Font attributes

## OUTPUT:

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