CanvasClusterMetrics Structure |
Namespace: Microsoft.Graphics.Canvas.Text
public struct CanvasClusterMetrics
The CanvasClusterMetrics type exposes the following members.
Name | Description | |
---|---|---|
CharacterCount | The number of characters in the cluster. | |
Properties | The glyph cluster's properties. | |
Width | The advance width of all glyphs in the cluster. |
A glyph cluster represents something drawn as one text character, and moves the text caret over by one position.
In Latin script with no diacritics (accents), a glyph cluster is simply one character. But in general, a cluster can span multiple characters in a text string.
For example, a text layout created from "นี้" appears as if it's one glyph, but it spans three characters. It's a cluster with a CharacterCount of 3.