Sujet : Re: canvas: change the background of a text item
De : saitology9 (at) *nospam* gmail.com (saito)
Groupes : comp.lang.tclDate : 30. Oct 2024, 22:42:46
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vfu98n$2aop5$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 10/30/2024 3:29 PM, undroidwish wrote:
And yes, the challenge now is to make the rectangle (ahem, rotated, a
polygon) for a somewhat rotated text out of its bbox (if you'd like to
have a text background).
Not sure when it became available but you can rotate text on a canvas using the -angle option. As for the background, the rectangle option works. Since, in this case, you will have the coordinates for the rectangle, you can translate the four coordinates to match the angle of the text. Not sure at all whether bbox can help you with the rotated stuff.
Tkpath is worth checking out. As I recall, it could rotations before Tk.