Can we align text yet?

hi,

i have a body of text using the display.newText function

can i align this with ‘center’ or ‘right’ etc yet?

if not, this needs to be a feature!
thanks

max [import]uid: 24641 topic_id: 34699 reply_id: 334699[/import]

Alignment works, though only with single lines of text. Paragraphs I think are still always align left. There used to be a library in the user code DB for this but looking at it I don’t think it’s practical.

Anyway, pretty sure there have been threads on this and it’s somewhere on the Corona radar. :slight_smile: [import]uid: 41884 topic_id: 34699 reply_id: 137882[/import]

I wrote a library, which manually creates multiline text… Manually as in it splits the string depending on a width and creates each line as a separate text object… It was pretty useful for me… You can align the lines too…

If someone really needs this, I can clean up the library and post it up this weekend! [import]uid: 64174 topic_id: 34699 reply_id: 137945[/import]

yes please!! [import]uid: 24641 topic_id: 34699 reply_id: 137949[/import]

Ok I tried to clean up the library but got pissed off…
So just posting the code…
Here it is

Use at your own risk :wink:
It should work pretty well, but if you do run into any trouble, just comment below that code… [import]uid: 64174 topic_id: 34699 reply_id: 137976[/import]

Alignment works, though only with single lines of text. Paragraphs I think are still always align left. There used to be a library in the user code DB for this but looking at it I don’t think it’s practical.

Anyway, pretty sure there have been threads on this and it’s somewhere on the Corona radar. :slight_smile: [import]uid: 41884 topic_id: 34699 reply_id: 137882[/import]

I wrote a library, which manually creates multiline text… Manually as in it splits the string depending on a width and creates each line as a separate text object… It was pretty useful for me… You can align the lines too…

If someone really needs this, I can clean up the library and post it up this weekend! [import]uid: 64174 topic_id: 34699 reply_id: 137945[/import]

yes please!! [import]uid: 24641 topic_id: 34699 reply_id: 137949[/import]

Ok I tried to clean up the library but got pissed off…
So just posting the code…
Here it is

Use at your own risk :wink:
It should work pretty well, but if you do run into any trouble, just comment below that code… [import]uid: 64174 topic_id: 34699 reply_id: 137976[/import]