Multiline Text Justification

Heya,

I love the new multiline text feature, even if it isn’t yet documented in the API, however I was wondering if it is possible to justify text, or whether such a feature could be added?

In the longer run, in as far as possible it would be wonderful to be able to mark up text, so that within a single paragraph individual words can be coloured, or styled for emphasis.

Thanks, [import]uid: 11757 topic_id: 18518 reply_id: 318518[/import]

Do you have any code example for the multiline method? [import]uid: 106083 topic_id: 18518 reply_id: 71048[/import]

There’s a couple of examples here:

http://blog.anscamobile.com/2011/10/multiple-lines-in-display-newtext/ [import]uid: 11757 topic_id: 18518 reply_id: 71049[/import]

In terms of a mark up to pass into the newText method, I think a simple HTML-like syntax would work fine:

  
local text=[[   
A load of **Text**!  
  
With all the <color>sins</color> of early <u>90's</u> webdesign!   
]]  
  
display.newText(text,0,0,"Impact",96)  
  

Perhaps even it might be possible to use the existing HTML renderer to render to a GL surface? [import]uid: 11757 topic_id: 18518 reply_id: 71050[/import]

+1 I think alignment of multiline is very important and a core feature. I don’t think we’ll need html syntax… [import]uid: 22829 topic_id: 18518 reply_id: 73003[/import]