Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
| Requirement | Value | 
|---|---|
| Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps] | 
| Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps] | 
| Header | dwrite.h |