DWRITE_CARET_METRICS structure (dwrite_1.h)
The DWRITE_CARET_METRICS structure specifies the metrics for caret placement in a font.
Syntax
struct DWRITE_CARET_METRICS {
INT16 slopeRise;
INT16 slopeRun;
INT16 offset;
};
Members
slopeRise
Vertical rise of the caret in font design units. Rise / Run yields the caret angle. Rise = 1 for perfectly upright fonts (non-italic).
slopeRun
Horizontal run of the caret in font design units. Rise / Run yields the caret angle. Run = 0 for perfectly upright fonts (non-italic).
offset
Horizontal offset of the caret, in font design units, along the baseline for good appearance. Offset = 0 for perfectly upright fonts (non-italic).
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 and Platform Update for Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps only] |
Header | dwrite_1.h |