setText
Clears any existing glyphs of previous text and adds the new glyphs of the specified string of text.
Parameters
the font that contains the glyphs to use
the string of text to draw
the x position to draw the text
the y position to draw the text
the scale of the x component of the glyphs
the scale of the y component of the glyphs
the rotation of the text to draw
the color of the text to draw
the width of the area the text will be drawn, for wrapping or truncation
the horizontal alignment of the text, see HAlign
if true, the text will be wrapped within the targetWidth
Clears any existing glyphs of previous text and uses layout to compile the glyphs to cache.
Parameters
the glyph layout to cache
the x position to draw the text
the y position to draw the text
the scale of the x component of the glyphs
the scale of the y component of the glyphs
the rotation of the text to draw
the color of the text to draw