This represents a text font.

Methods

baseline (fontSize:Int):Float

The base line position.

height (fontSize:Int):Float

Font height

width (fontSize:Int, str:String):Float

Width of a string with this font.

Parameters:

str

The string to measure.

Inherited Variables

Inherited Methods

Defined by Resource

unload ():Void

Unload the resource from memory. Normally called by the Loader.