PyCDC.GetTextExtent

(x,y) = GetTextExtent(text)

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.

MFC References

CFC::GetTextExtent

Return Value

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