I understand that it is possible to get the size of text on a canvas:
t = canvas.create_text(x, y, text='Hello StackOverflow')
print(canvas.bbox(t))
but I want to decide where to draw the text based on its size, so I need to know the size before the text is drawn. How to do that?