Indices Property
Collapse the table of content
Expand the table of content

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.

Namespace:  System.Windows.Documents
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public string Indices { get; set; }
<Glyphs Indices="string"/>

Property Value

Type: System.String
A 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;".

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft