getTextWidth()

eSignal EFS

getTextWidth()

 

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

 

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

 

Returns the text width in pixels.

 

Example:

 

var nPixWidth = getTextWidth( "A" );

 

getTextHeight()