Partager via


GetOutlineTextMetrics (Windows CE 5.0)

Send Feedback

This function retrieves text metrics for TrueType fonts.

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 Values

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

OS Versions: Windows CE 5.0 and later.
Header: Windows.h.
Link Library: Coredll.lib.

See Also

GDI Functions | GetTextMetrics | OUTLINETEXTMETRICW | TEXTMETRIC

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.