Glyphs.Indices Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets the glyph indices for the glyphs.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
<Glyphs Indices="string"/>
Property Value
Type: System.StringA string that defines glyph indices as well as other glyph specifics in a string mini-language. The default is null.
Dependency property identifier field: IndicesProperty
The format for glyph indices is complex and is not documented completely here. The following is an approximate grammar of one index point:
[GlyphIndex][,[Advance][,[uOffset][,[vOffset]]]]
Each such index point is then separated in the string by a semicolon (;).
Term | Underlying type | Definition |
|---|---|---|
GlyphIndex | Integer | Index of a glyph in the font. |
Advance | Double | Placement for next glyph relative to origin of this glyph. |
uOffset, vOffset | Double | Offset relative to glyph origin to move this glyph. Usually used to attach marks to base characters. |
The most relevant purpose for the Indices property in Windows Phone is to use it for spacing the characters within the specified Unicode string, rather than for full specification of each glyph. In this case you would always use the Unicode string for the true indices and leave GlyphIndex blank in each index point. For example, to apply an advance spacing of 80 for each character in the Unicode string "Hello", the Indices value would be ",80;,80;,80;,80;,80;".