You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?