Gets the width and height of a string as it would be drawn on the window with the window's default font.
The width box is filled with the text width and the height box is filled with the text height.