Type Userdata Object TextField Library native.* Revision Release 2020.3606 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()