Keep text From Going Off Screen

How do you keep the text confined to a certain space. Kind of like a display.newRect for display.newText so that way the text doesn't run off the screen if it's too long?

There is indeed :)

Try out display.newRetinaText, that has the option to set how wide and high it can go. For example..

1
2
3
display.newRetinaText( string, left, top, [width, height,] font, size )
 
display.newRetinaText( "Hello", 0, 0, 280, 220, "Helvetica", 16 )

Perfect! Thanks :)

views:1756 update:2012/1/13 9:04:04
corona forums © 2003-2011