IDWriteFontFace1::GetCaretMetrics method (dwrite_1.h)

Gets caret metrics for the font in design units.

Syntax

void GetCaretMetrics(
  [out] DWRITE_CARET_METRICS *caretMetrics
);

Parameters

[out] caretMetrics

Type: DWRITE_CARET_METRICS*

A pointer to the DWRITE_CARET_METRICS structure that is filled.

Return value

None

Remarks

Caret metrics are used by text editors for drawing the correct caret placement and slant.

Requirements

Requirement Value
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Target Platform Windows
Header dwrite_1.h
Library Dwrite_1.lib
DLL Dwrite_1.dll

See also

IDWriteFontFace1