Closed groliffe closed 5 years ago
Hi Lance,
yes there is :) See the test file test-pltext-horz-alignment.pdf
.
Basically it depends on the element surrounding the text (like a PLBox
). I extended the example you mentioned and it creates this:
hth, Philip
Thanks Philip,
That worked a treat.
Lance
I can see from testTextHorzAlignment test in the PLTextTest class how you should right justify a piece of text, but this only seems to work if the text wraps over multiple lines. If I just have a short piece of text, i.e. "Hello world", then that text never seems to be pushed to the right hand page margin. In fact, setting the alignment to LEFT, CENTER or RIGHT makes no difference.
Is there a way to achieve this?
Cheers
Lance