getTextHeight() |
Top Previous Next |
getTextHeight( text [, fontName] [, fontSize] )
Returns the height of text in pixels.
Parameters
Usage
function main() { var myVar;
... ...
//return the height, in pixels of the letter Y in //the Arial font with a size of 24 myVar = getTextHeight( "Y", "Arial", 24 );
}
|