For getting the size of a D3D text, you use DT_CALCRECT, not GetTextExtentPoint.