Moving rotated text

12 views
Skip to first unread message

jles...@gmx.de

unread,
Nov 16, 2014, 4:53:15 AM11/16/14
to piccolo...@googlegroups.com
Hello everybody
I have a question concerning text elements. I need a PStyledText which displays its text from bottom to top rather than from left to right. So I put a call of rotateInPlace() in my code which works well. However, the text is placed in a rectangular box and is supposed to be re-positioned when the box is resized - e.g. th text should always appeared centered. But now that he text is rotated it seems that e.g. setting the width is applied in direction of the rotation. E.g. setting the width makes the text field to become higher rather than wider. I could somehow programm around that effect but I wonder if I really understood how Piccolo works concerning this issue.

So what is the best way to modify the bounds of a rotated text to fit into the bounds of a non-rotated rectangle?

Regards,
Jan

Reply all
Reply to author
Forward
0 new messages