Is there a quick way to place text by its center instead of by its top left?
If it were a texture I would just subtract 1/2 its width, but for a text label I am having trouble finding a way to predict its width. Different font sizes change the width but I don’t know how a font sized “16” or w/e corresponds to screen pixels.
So how do you predict the width of a text label displaying:
“Hello World, do you know my width?”
when its using X font and Y font size?
EDIT: Wow I really can’t believe no one responded to this for a whole week and 5 bumps. Am I not explaining myself well enough? I am sure someone else has had this problem before.