oh my god... how to calculate text length?

BlitzMax Forums/BlitzMax Beginners Area/oh my god... how to calculate text length?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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.