How to justify a text with Corona in 2017?

Hi all,
I saw in the forum that it is a very old question that seems unsolved.

Please which is the best way to justify a multilined text, and more to be able to add a carriage return to back line.

It seems that only native.newTextBox() enables to use “backslash n” to add a new line, but this textbox is not a part of opengl so is too ugly on the screen.

Any clue or api to have a nice jusitfy multi-lined text on screen where you can easily add "back line "?
Thanks a lot!

newText() Allows /n for multi-line.  I use it all the time.

you can make it more pretty if you remove background of textboxes and make your owns. to justify you need to do your own code.

See this tutorial:

https://coronalabs.com/blog/2014/02/11/tutorial-methods-for-positioning-text/

Rob

many thank’s all !

Hi @latyl1,

You should also consider the “Text Wrapper” plugin which handles justified text:

https://marketplace.coronalabs.com/plugin/text-wrapper

Brent

newText() Allows /n for multi-line.  I use it all the time.

you can make it more pretty if you remove background of textboxes and make your owns. to justify you need to do your own code.

See this tutorial:

https://coronalabs.com/blog/2014/02/11/tutorial-methods-for-positioning-text/

Rob

many thank’s all !

Hi @latyl1,

You should also consider the “Text Wrapper” plugin which handles justified text:

https://marketplace.coronalabs.com/plugin/text-wrapper

Brent