PyCDC.GetTextExtentPoint

(x,y) = GetTextExtentPoint(text)

An alias for PyCDC::GetTextExtent. GetTextExtentPoint is the preferred win32api name, but GetTextExtent is the MFC name.
Calculates the width and height of a line of text using the current font to determine the dimensions.

Parameters

text : string

The text to calculate for.

Return Value

A tuple of integers with the size of the string, in logical units.