how to put a frame around a TextLine?

5 views
Skip to first unread message

Christophe Pallier

unread,
Sep 9, 2020, 6:11:17 AM9/9/20
to expyriment-users
I would like to frame a text. I thought of creating a Rectangle to draw on the same canvas as a TextLine object, but I do not see how to get the size (width and height) of the TextLine object.

Christophe Pallier

unread,
Sep 9, 2020, 7:49:52 AM9/9/20
to expyriment-users
Solved: I discovered that surfaces have an attribute surface_size that returns the width and height.

Florian Krause

unread,
Sep 9, 2020, 8:44:18 AM9/9/20
to expyrime...@googlegroups.com
On Wed, Sep 9, 2020 at 1:49 PM Christophe Pallier <chris...@pallier.org> wrote:
Solved: I discovered that surfaces have an attribute surface_size that returns the width and height.


Indeed :-) Glad you could solve it!


Reply all
Reply to author
Forward
0 new messages