Skip to content

Right aligned text with bottom right x y coordinates #4260

Closed Answered by shunkica
shunkica asked this question in Looking for help
Discussion options

You must be logged in to vote

I figured it out.

width = cur_font.text_length(text.content, text.fontsize)
tw.append((text.x - width, text.y), text.content, fontsize=text.fontsize, font=cur_font)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shunkica
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant