Table of Contents

Enum LineSpacingMethod

Namespace
SharpDX.DirectWrite
Assembly
SharpDX.Direct2D1.dll

The method used for line spacing in a text layout.

public enum LineSpacingMethod

Fields

Default = 0

Line spacing depends solely on the content, adjusting to accommodate the size of fonts and inline objects.

Proportional = 2

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. ?
Uniform = 1

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.

Remarks

The line spacing method is set by using the SetLineSpacing method of the TextFormat or TextLayout interfaces. To get the current line spacing method of a text format or text layou use the GetLineSpacing.