Content:
- Methods

Creates a text label which is used to display texts in your game.

txt = gfx.CreateText( text, fontSize, fontFile, align, callback ) → game object: Text

Methods

The following methods are available on the Text object:

alignString: “left” or “center” or “right”
alphaNumber: fraction (0..1)
angleNumber: fraction (0..1)
Contains( x, y ) → Boolean
fileString: path to file or folder ( “/absolute/...” or “relative/...” )
fontSizeNumber: pixel
heightNumber: fraction (0..1)
pivotXNumber: fraction (0..1)
pivotYNumber: fraction (0..1)
scaleXNumber: factor
scaleYNumber: factor
Update()
visibleBoolean
widthNumber