Click or drag to resize
CanvasTextAnalyzerGetGlyphs Method (CanvasCharacterRange, CanvasFontFace, Single, Boolean, Boolean, CanvasAnalyzedScript, String, CanvasNumberSubstitution, IReadOnlyListKeyValuePairCanvasCharacterRange, CanvasTypography, Int32, Boolean, CanvasGlyphShaping)
Gets the array of glyphs which comprise the text.

Namespace:  Microsoft.Graphics.Canvas.Text
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public CanvasGlyph[] GetGlyphs(
	CanvasCharacterRange characterRange,
	CanvasFontFace fontFace,
	float fontSize,
	bool isSideways,
	bool isRightToLeft,
	CanvasAnalyzedScript script,
	string locale,
	CanvasNumberSubstitution numberSubstitution,
	IReadOnlyList<KeyValuePair<CanvasCharacterRange, CanvasTypography>> typographyRanges,
	out int[] clusterMapIndicesElements,
	out bool[] isShapedAloneGlyphsElements,
	out CanvasGlyphShaping[] glyphShapingResultsElements
)

Parameters

characterRange
Type: Microsoft.Graphics.Canvas.TextCanvasCharacterRange
fontFace
Type: Microsoft.Graphics.Canvas.TextCanvasFontFace
fontSize
Type: SystemSingle
isSideways
Type: SystemBoolean
isRightToLeft
Type: SystemBoolean
script
Type: Microsoft.Graphics.Canvas.TextCanvasAnalyzedScript
locale
Type: SystemString
numberSubstitution
Type: Microsoft.Graphics.Canvas.TextCanvasNumberSubstitution
typographyRanges
Type: System.Collections.GenericIReadOnlyListKeyValuePairCanvasCharacterRange, CanvasTypography
clusterMapIndicesElements
Type: SystemInt32
isShapedAloneGlyphsElements
Type: SystemBoolean
glyphShapingResultsElements
Type: Microsoft.Graphics.Canvas.TextCanvasGlyphShaping

Return Value

Type: CanvasGlyph
Remarks

Use the results from GetFonts and GetScript to obtain the font and script data for calling GetGlyphs.

The number substitution parameter is optional.

The typographic ranges parameter is optional.

If typographic ranges are specified, they must

  • Follow in sequence, starting at the first character position in the range.
  • Not overlap
  • Cover all text positions in the range.

The output array parameters are optional. If they are not specified, these values will not be returned.

See Also