Hey there !
I’ve got a text field which needs to be multiline and centered. That means I have to set a width. That works fine.
local text = display.newText({text="Hello World", fontSize=12, x=display.contentWidth\*0.5, y=display.contentHeight\*0.5, width=640, align="center", font="Arial"})
If I print the text width, it will return “640”, which corresponds to the width of the text area and not the actual text.
But is there any way to get the real width of “Hello World” ?

