Hello! How I create automatic multiline text?
Also, how much is the text limit? Corona crashes (hard) on Android when you create long enough texts (Corona works by taking your TTF font, rendering the text on a texture, and pasting that texture on the screen, it crashes when the created texture is bigger than what the device supports)
Comments
I am thinking in making a new version of this (or something else, if I cannot figure how to modify that code), that allow colour changes in the middle of the text, there is any interest on that?
Probably I would try to make it accept ANSI color codes (^24[38:2:R:G:B or something like that if I remember correctly...)
By the way, if this was on Corona it would break badly for UTF-8 stuff that is not latin character.
In Corona at least, I had a serious issue when doing word-wrap, that when using character count, in Chinese for example, it would return the number of bytes that it used, not characters, thus 4 chinese characters reported 8 "characters" or more instead (sometimes even 10, 11...)
Thus my manual wrapping code broke really badly.
I think @atilim version is more correct in handling them
http://www.giderosmobile.com/forum/discussion/comment/8157#Comment_8157