DrawText length query...

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

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.

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.