ui.draw_string - vertical alignment
Phuket2 last edited by
@omz, maybe I am wrong, but I think you knew this question was going to catch up with you sometime or later.
I am talking about vertical alignment of text in the ui.draw_string function. You can sort of fake it without it, but sort of.
Eg, for a given Rect, I make a circle/oval. Then to draw horizontally in the circle I create a new Rect , w *.8, h * .6 then use ui.draw_string to draw into that Rect , there is no vertical param.
Then have to start doing some funky stuff for it to almost look right.
Is there something I am missing? I know I can use ui.measure_text to get the width and height of the text. But ideally, you want to write into the same Rect.
Here is a gist Of what I have be playing around with