Allow text to wrap, be left-aligned

I’ve asked a question about this so in case it’s not possible (http://developer.anscamobile.com/forum/2011/01/24/how-can-i-create-left-aligned-line-breaking-text), I’d like to add it as feature:

Have normal text labels (not for input, but for writing something) be optionally left-aligned, not just centered, and have them optionally wrap at the end of their width. [import]uid: 10284 topic_id: 5536 reply_id: 305536[/import]

This code works great for wrapping text, I am using with great results in my current game:

http://developer.anscamobile.com/code/wrap-text

It’s not for buttons or labels, just standard display texts. But you can use it to roll your own UI elements.

[import]uid: 8444 topic_id: 5536 reply_id: 18782[/import]

Excellent, thanks for the pointer! [import]uid: 10284 topic_id: 5536 reply_id: 18784[/import]

I’m using that code now, it’s a very good start, still hoping for the feature to become official though – the code above will not take into consideration proportional fonts (i.e. different letter sizing) and it could also still be easier to integrate into projects which use own sprites handling (I had to take the array then display using my own routines). [import]uid: 10284 topic_id: 5536 reply_id: 18988[/import]