Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DWRITE_LINE_METRICS1 structure

Contains information about a formatted line of text.

Syntax


struct DWRITE_LINE_METRICS1 {
  UINT32 length;
  UINT32 trailingWhitespaceLength;
  UINT32 newlineLength;
  FLOAT  height;
  FLOAT  baseline;
  BOOL   isTrimmed;
  FLOAT  leadingBefore;
  FLOAT  leadingAfter;
};

Members

length

Type: UINT32

The number of text positions in the text line. This includes any trailing whitespace and newline characters.

trailingWhitespaceLength

Type: UINT32

The number of whitespace positions at the end of the text line. Newline sequences are considered whitespace.

newlineLength

Type: UINT32

The number of characters in the newline sequence at the end of the text line. If the count is zero, then the text line was either wrapped or it is the end of the text.

height

Type: FLOAT

The height of the text line.

baseline

Type: FLOAT

The distance from the top of the text line to its baseline.

isTrimmed

Type: BOOL

The line is trimmed.

leadingBefore

Type: FLOAT

White space before the content of the line. This is included in the line height and baseline distances. If the line is formatted horizontally either with a uniform line spacing or with proportional line spacing, this value represents the extra space above the content.

leadingAfter

Type: FLOAT

White space after the content of the line. This is included in the height of the line. If the line is formatted horizontally either with a uniform line spacing or with proportional line spacing, this value represents the extra space below the content.

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Header

Dwrite_3.h

 

 

Show:
© 2017 Microsoft