DrawText length query...

BlitzMax Forums/BlitzMax Programming/DrawText length query...

doswelk(Posted 2007) [#1]
If I have loaded a font and then used drawtext to display it on screen, is there a way to calculate the length of the text on the screen.

What I mean is there a way to work out how many pixels it took up?

I know I can get the number of characters using len, but len * pointsize does not equal pixel width.


doswelk(Posted 2007) [#2]
Not to worry found it....

TextWidth