DWRITE_TEXT_METRICS

<summary> Overall metrics associated with text after layout. All coordinates are in device independent pixels (DIPs). </summary>

Members

Variables

height
FLOAT height;

<summary> The height of the formatted text. The height of an empty string is determined by the size of the default font's line height. </summary>

layoutHeight
FLOAT layoutHeight;

<summary> Initial height given to the layout. Depending on the length of the text, it may be larger or smaller than the text content height. </summary>

layoutWidth
FLOAT layoutWidth;

<summary> Initial width given to the layout. Depending on whether the text was wrapped or not, it can be either larger or smaller than the text content width. </summary>

left
FLOAT left;

<summary> Left-most point of formatted text relative to layout box (excluding any glyph overhang). </summary>

lineCount
UINT32 lineCount;

<summary> Total number of lines. </summary>

maxBidiReorderingDepth
UINT32 maxBidiReorderingDepth;

<summary> The maximum reordering count of any line of text, used to calculate the most number of hit-testing boxes needed. If the layout has no bidirectional text or no text at all, the minimum level is 1. </summary>

top
FLOAT top;

<summary> Top-most point of formatted text relative to layout box (excluding any glyph overhang). </summary>

width
FLOAT width;

<summary> The width of the formatted text ignoring trailing whitespace at the end of each line. </summary>

widthIncludingTrailingWhitespace
FLOAT widthIncludingTrailingWhitespace;

<summary> The width of the formatted text taking into account the trailing whitespace at the end of each line. </summary>

Meta