DWRITE_LINE_SPACING_METHOD enumeration
The method used for line spacing in a text layout.
Syntax
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 only available on Windows 10 or later and it can be used with IDWriteTextLayout3::SetLineSpacing, but can not 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 layou use the GetLineSpacing.
Requirements
|
Minimum supported client |
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
|
Header |
|
See also