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.
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.