[]
Retrieves logical properties and measurements of each glyph cluster.
public ClusterMetrics[] GetClusterMetrics()
| Type | Description |
|---|---|
| ClusterMetrics[] | Returns metrics, such as line-break or total advance width, for a glyph cluster. |
If maxClusterCount is not large enough, then E_NOT_SUFFICIENT_BUFFER, which is equivalent to HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER), is returned and actualClusterCount is set to the number of clusters needed.
HRESULT IDWriteTextLayout::GetClusterMetrics([Out, Buffer, Optional] DWRITE_CLUSTER_METRICS* clusterMetrics,[In] unsigned int maxClusterCount,[Out] unsigned int* actualClusterCount)
public HResult GetClusterMetrics(ClusterMetrics[] clusterMetrics, int maxClusterCount, out int actualClusterCount)
| Type | Name | Description |
|---|---|---|
| ClusterMetrics[] | clusterMetrics | |
| int | maxClusterCount | |
| int | actualClusterCount |
| Type | Description |
|---|---|
| HResult |