text wrapping can be justify?

Text will be wrapped, if we use

width = 128, --required for multiline and alignment
height = 300,

is there a way to “justify” the text?

and where do I write it, if I have this

local tx1 = display.newText ("this text justify", 30, 20, 452, 400, nil, 18)

I try this, from corona labs

local options = {     --parent = groupObj,     text = "Hello World",          x = 150,     y = 150,     width = 128,            --required for multiline and alignment     height = 300,           --required for multiline and alignment     font = native.systemFontBold,        fontSize = 18,     align = "left"          --new alignment field } local myText = display.newText( options )

and got error

Bad argument #-1 to ‘newText’ (Proxy expected, got nil)

for multiline text you can have height = 0 and corona will figure itself correct height based on content. 

Code works good - tested. Open simulator and click “Help”  and then “About simulator…” 

To use newText(options) you must have written there:

"Corona Simulator

2013.1202"

what do you have in this second line?

I have this

Version 2013.1076 (2013.4.3)

and I know about the – height = 0

but still is not “justify”

on the right of the text, is not aligned.

It won’t work for you. You have version 1076 but only versions including 1202 and above have ability to justify text. Download Corona SDK once again (on page is always the latest version - which now is 1202) and install it. It will update Corona Simulator and you will be able to justify text (close simulator before installing)

I am very afraid of the UPDATES.

now it works fine, I have 3 apps already.

all my code is with this version.

I’m going to do an update of my first app / with this version.

If I update to the new one, I’m afraid  I will have to change code

or update my text editor to make compatible, or update my computer to make it work

or update iTunes, or Xcode will not work or…

I rather not have text justify, that have the problem of starting all over again

to make everything work.


if I update or change to the new “Corona” version

will everything work the same?

are you sure?

100%

for multiline text you can have height = 0 and corona will figure itself correct height based on content. 

Code works good - tested. Open simulator and click “Help”  and then “About simulator…” 

To use newText(options) you must have written there:

"Corona Simulator

2013.1202"

what do you have in this second line?

I have this

Version 2013.1076 (2013.4.3)

and I know about the – height = 0

but still is not “justify”

on the right of the text, is not aligned.

It won’t work for you. You have version 1076 but only versions including 1202 and above have ability to justify text. Download Corona SDK once again (on page is always the latest version - which now is 1202) and install it. It will update Corona Simulator and you will be able to justify text (close simulator before installing)

I am very afraid of the UPDATES.

now it works fine, I have 3 apps already.

all my code is with this version.

I’m going to do an update of my first app / with this version.

If I update to the new one, I’m afraid  I will have to change code

or update my text editor to make compatible, or update my computer to make it work

or update iTunes, or Xcode will not work or…

I rather not have text justify, that have the problem of starting all over again

to make everything work.


if I update or change to the new “Corona” version

will everything work the same?

are you sure?

100%