Struct LineSpacing
- Namespace
- SharpDX.DirectWrite
- Assembly
- SharpDX.Direct2D1.dll
public struct LineSpacing
- Inherited Members
Fields
Baseline
Distance from top of line to baseline. The interpretation of this parameter depends upon the line spacing method, as follows:
- default line spacing: ignored
- uniform line spacing: explicit distance in DIPs from the top of the line to the baseline
- proportional line spacing: a scaling factor applied to the computed baseline; for each line, the baseline distance is computed as for default line spacing, and the scaling factor is applied to that value.
public float Baseline
Field Value
FontLineGapUsage
Specify whether FontMetrics::lineGap value should be part of the line metrics.
public FontLineGapUsage FontLineGapUsage
Field Value
Height
Spacing between lines. The interpretation of this parameter depends upon the line spacing method, as follows:
- Line spacing: ignored
- uniform line spacing: explicit distance in DIPs between lines
- proportional line spacing: a scaling factor to be applied to the computed line height; for each line, the height of the line is computed as for default line spacing, and the scaling factor is applied to that value.
public float Height
Field Value
LeadingBefore
Proportion of the entire leading distributed before the line. The allowed value is between 0 and 1.0. The remaining leading is distributed after the line. It is ignored for the default and uniform line spacing methods. The leading that is available to distribute before or after the line depends on the values of the height and baseline parameters.
public float LeadingBefore
Field Value
Method
Method used to determine line spacing.
public LineSpacingMethod Method