Forgive me if this question has been answered, but I couldn’t find it.
If I use newText with a fixed width, so that my text wraps, is there any way to get the width of the actual pixel width on screen?
For example, local temp = display.newText( "Some long string of text that will wrap at a whitespace character", 0, 50,320,0,"HelveticaNeue-Bold", 15 )
This text wraps right before “whitespace”
Some long string of text that will wrap at a
whitespace character
The pixel width of this text is ~305. However, temp.width & temp.contentWidth both return the textbox width of 320. Is there any workaround to get that 305 width?