DWRITE_LINE_SPACING_METHOD enumeration (dwrite.h)
The method used for line spacing in a text layout.
Syntax
typedef enum DWRITE_LINE_SPACING_METHOD {
DWRITE_LINE_SPACING_METHOD_DEFAULT,
DWRITE_LINE_SPACING_METHOD_UNIFORM,
DWRITE_LINE_SPACING_METHOD_PROPORTIONAL
} ;
Constants
DWRITE_LINE_SPACING_METHOD_DEFAULT Line spacing depends solely on the content, adjusting to accommodate the size of fonts and inline objects. |
DWRITE_LINE_SPACING_METHOD_UNIFORM Lines are explicitly set to uniform spacing, regardless of the size of fonts and inline objects. This can be useful to avoid the uneven appearance that can occur from font fallback. |
DWRITE_LINE_SPACING_METHOD_PROPORTIONAL Line spacing and baseline distances are proportional to the computed values based on the content, the size of the fonts and inline objects. NOTE This value is available only on Windows 10 or later, and it can be used with IDWriteTextLayout3::SetLineSpacing, but it can't be used with IDWriteTextFormat::SetLineSpacing. |
Remarks
The line spacing method is set by using the SetLineSpacing method of the IDWriteTextFormat or IDWriteTextLayout interfaces. To get the current line spacing method of a text format or text layout use the GetLineSpacing.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps] |
Header | dwrite.h |