object.size

Type Number
Object TextObject
Library display.*
Revision Current Public Release (2017.3068)
Keywords text, size, font size
See also textObject.text
display.newText()

Overview

Retrieves or sets the text size pertaining to a text object.

Setting this property to nil or 0 will make the object use the system's default font size.

Example

local myText = display.newText( "", 0, 0, native.systemFont, 12 )
myText:setFillColor( 1, 1, 1 )

myText.text = "Hello World!"
myText.size = 16