surface.GetTextSize
Example
Prints out the size of Hello World
in the Trebuchet24 font.
Output: Text width: 100, text height: 24
Returns the width and height (in pixels) of the given text with the font that has been set with surface.SetFont.
Prints out the size of Hello World
in the Trebuchet24 font.