DWRITE_TEXT_METRICS1 structure (dwrite_2.h)

Contains the metrics associated with text after layout.All coordinates are in device independent pixels (DIPs).

DWRITE_TEXT_METRICS1 extends DWRITE_TEXT_METRICS to include the height of the formatted text.

Syntax

struct DWRITE_TEXT_METRICS1 : DWRITE_TEXT_METRICS {
  FLOAT heightIncludingTrailingWhitespace;
};

Inheritance

The DWRITE_TEXT_METRICS1 structure implements DWRITE_TEXT_METRICS.

Members

heightIncludingTrailingWhitespace

The height of the formatted text taking into account the trailing whitespace at the end of each line. This is pertinent for vertical text.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 R2 [desktop apps | UWP apps]
Header dwrite_2.h