Click or drag to resize
CanvasTextAnalyzerGetJustificationOpportunities Method
Retrieves justification opportunity information, per-glyph.

Namespace:  Microsoft.Graphics.Canvas.Text
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public CanvasJustificationOpportunity[] GetJustificationOpportunities(
	CanvasCharacterRange characterRange,
	CanvasFontFace fontFace,
	float fontSize,
	CanvasAnalyzedScript script,
	int[] clusterMapIndicesElements,
	CanvasGlyphShaping[] glyphShapingResultsElements
)

Parameters

characterRange
Type: Microsoft.Graphics.Canvas.TextCanvasCharacterRange
fontFace
Type: Microsoft.Graphics.Canvas.TextCanvasFontFace
fontSize
Type: SystemSingle
script
Type: Microsoft.Graphics.Canvas.TextCanvasAnalyzedScript
clusterMapIndicesElements
Type: SystemInt32
glyphShapingResultsElements
Type: Microsoft.Graphics.Canvas.TextCanvasGlyphShaping

Return Value

Type: CanvasJustificationOpportunity
Remarks

This is the place to start when performing justification on custom text layouts. The order of things is to:

For an example which performs custom text layout justification, see CustomTextLayouts.xaml.cs.

If a null font face is specified, the default font face will be used.

See Also