RetroArch
Public Attributes | List of all members
DWRITE_LINE_SPACING Struct Reference

The DWRITE_LINE_SPACING structure specifies the parameters used to specify how to manage space between lines. More...

#include <dwrite_3.h>

Public Attributes

DWRITE_LINE_SPACING_METHOD method
 Method used to determine line spacing. More...
 
FLOAT height
 Spacing between lines. The interpretation of this parameter depends upon the line spacing method, as follows: More...
 
FLOAT baseline
 Distance from top of line to baseline. The interpretation of this parameter depends upon the line spacing method, as follows: More...
 
FLOAT 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. More...
 
DWRITE_FONT_LINE_GAP_USAGE fontLineGapUsage
 Specify whether DWRITE_FONT_METRICS::lineGap value should be part of the line metrics. More...
 

Detailed Description

The DWRITE_LINE_SPACING structure specifies the parameters used to specify how to manage space between lines.

Member Data Documentation

◆ baseline

FLOAT DWRITE_LINE_SPACING::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.

◆ fontLineGapUsage

DWRITE_FONT_LINE_GAP_USAGE DWRITE_LINE_SPACING::fontLineGapUsage

Specify whether DWRITE_FONT_METRICS::lineGap value should be part of the line metrics.

◆ height

FLOAT DWRITE_LINE_SPACING::height

Spacing between lines. The interpretation of this parameter depends upon the line spacing method, as follows:

  • default 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.

◆ leadingBefore

FLOAT DWRITE_LINE_SPACING::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.

◆ method

DWRITE_LINE_SPACING_METHOD DWRITE_LINE_SPACING::method

Method used to determine line spacing.


The documentation for this struct was generated from the following file: