CDC::GetOutlineTextMetrics
Visual Studio 2012
Retrieves metric information for TrueType fonts.
UINT GetOutlineTextMetrics( UINT cbData, LPOUTLINETEXTMETRIC lpotm ) const;
The OUTLINETEXTMETRIC structure contains most of the font metric information provided with the TrueType format, including a TEXTMETRIC structure. The last four members of the OUTLINETEXTMETRIC structure are pointers to strings. Applications should allocate space for these strings in addition to the space required for the other members. Because there is no system-imposed limit to the size of the strings, the simplest method for allocating memory is to retrieve the required size by specifying NULL for lpotm in the first call to the GetOutlineTextMetrics function.