Share via


Gdi::GetOutlineTextMetricsW_I (Windows Embedded CE 6.0)

1/6/2010

This method retrieves text metrics for TrueType fonts.

Syntax

UINT GetOutlineTextMetrics(
  HDC                  hdc,
  UINT                 cbData,
  LPOUTLINETEXTMETRICW lpOTM
);

Parameters

  • hdc
    [in] Handle to the device context.
  • cbData
    [in] Specifies the size, in bytes, of the array that receives the text metrics.
  • lpOTM
    [out] Pointer to an OUTLINETEXTMETRICW structure. If this parameter is NULL, the function returns the size of the buffer required for the retrieved metric data.

Return Value

If the function succeeds, the return value is nonzero or the size of the required buffer.

If the function fails, the return value is zero.

To get extended error information, call GetLastError.

Remarks

The OUTLINETEXTMETRICW structure contains most of the text metric information provided for TrueType fonts (including a TEXTMETRIC structure). The sizes returned in the OUTLINETEXTMETRICW structures are in logical units; they depend on the current mapping mode.

Requirements

Header gdi.hpp
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

Gdi
OUTLINETEXTMETRICW

Other Resources

GetTextMetrics
TEXTMETRIC