One catch though:
TextWidth(text$) will return the size of the text *before scaling*. If you use any scaling other than 1,1, you will have to multiple the results of TextWidth with the scaling you applied, to obtain the true size in pixels at which something would be drawn.
TextWidth(text$) will return the size of the text *before scaling*. If you use any scaling other than 1,1, you will have to multiple the results of TextWidth with the scaling you applied, to obtain the true size in pixels at which something would be drawn.