GetOutlineTextMetrics

  DWORD GetOutlineTextMetrics(hdc, cbData, lpOTM)    
  HDC hdc; /* device-context handle */
  UINT cbData; /* size of data to return */
  LPOUTLINETEXTMETRIC lpOTM; /* pointer to structure for metrics */

The GetOutlineTextMetrics function retrieves metric data for TrueType fonts.

Parameters

hdc

Identifies the device context.

cbData

Specifies the size (in bytes) of the data to be returned by this function.

lpOTM

Points to an OUTLINETEXTMETRIC data structure. If this parameter is NULL, the function returns the size of the buffer required for the retrieved metric data.

Return Value

The return value is TRUE or the size of the buffer required for the metric data if the function is successful. Otherwise, it is FALSE.

Comments

The OUTLINETEXTMETRIC structure contains most of the font metric information provided with the TrueType format, including a TEXTMETRIC structure. The sizes returned in these structures are in logical units; they depend on the current mapping mode.

Note:

The order of the structure elements may change for the final release of TrueType.

See Also

GetTextMetrics