getTextHeight()

ICE Data Services -

getTextHeight()

 

getTextHeight( text, [FontName], [FontSize] )

 

  • text:  Text for which to obtain pixel height.
  • FontName:  Optional. Font to use when determining pixel height.
  • FontSize:  Optional. Font size to use when determining pixel height.

 

Returns the text height in pixels.

 

Example: 

var nPixHeight = getTextHeight( "A" );

 

getTextWidth()