DWRITE_CLUSTER_METRICS structure

Contains information about a glyph cluster.

Syntax


struct DWRITE_CLUSTER_METRICS {
  FLOAT  width;
  UINT16 length;
  UINT16 canWrapLineAfter  :1;
  UINT16 isWhitespace  :1;
  UINT16 isNewline  :1;
  UINT16 isSoftHyphen  :1;
  UINT16 isRightToLeft  :1;
  UINT16 padding  :11;
};

Members

width

Type: FLOAT

The total advance width of all glyphs in the cluster.

length

Type: UINT16

The number of text positions in the cluster.

canWrapLineAfter

Type: UINT16

Indicates whether a line can be broken right after the cluster.

isWhitespace

Type: UINT16

Indicates whether the cluster corresponds to a whitespace character.

isNewline

Type: UINT16

Indicates whether the cluster corresponds to a newline character.

isSoftHyphen

Type: UINT16

Indicates whether the cluster corresponds to a soft hyphen character.

isRightToLeft

Type: UINT16

Indicates whether the cluster is read from right to left.

padding

Type: UINT16

Reserved for future use.

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.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft