View source
class TextField
package away3d.textfield
extends Mesh › Entity › ObjectContainer3D › Object3D › NamedAssetBase
Available on all platforms
Constructor
new(width:Float, height:Float, text:String, bitmapFont:BitmapFont, fontSize:Float = 12, color:UInt = 0x0, bold:Bool = false, _hAlign:String = "left")
Variables
autoScale:Bool
Indicates whether the font size is scaled down so that the complete text fits
* into the text field. @default false
autoSize:TextFieldAutoSize
Specifies the type of auto-sizing the TextField will do.
* Note that any auto-sizing will make auto-scaling useless. Furthermore, it has
* implications on alignment: horizontally auto-sized text will always be left-,
* vertically auto-sized text will always be top-aligned. @default "none"
letterSpacing:Float
A number representing the amount of space that is uniformly distributed between all characters. The value specifies the number of pixels that are added to the advance after each character. The default value is null, which means that 0 pixels of letter spacing is used. You can use decimal values such as 1.75. @default 0