Type Userdata Object TextField Library native.* Revision Current Public Release (2017.3184) Keywords native text input See also object:resizeFontToFitHeight() object:resizeHeightToFitFont()
Gets or sets the native text field's font. May be set to a font object as returned by the native.newFont() function.
The font size read or written to this property may be either in Corona's
By default, the font size is measured in Corona's
"isNativeTextFieldFontSizeScaled" key of display.setDefault().
local myField = native.newTextField( 10, 30, 180, 30 ) myField.font = native.newFont( native.systemFontBold, 18 ) myField:resizeHeightToFitFont()