Click or drag to resize
CanvasTextAnalyzer.GetJustificationOpportunities 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.Text.CanvasCharacterRange
fontFace
Type: Microsoft.Graphics.Canvas.Text.CanvasFontFace
fontSize
Type: System.Single
script
Type: Microsoft.Graphics.Canvas.Text.CanvasAnalyzedScript
clusterMapIndicesElements
Type:System.Int32[]
glyphShapingResultsElements
Type:Microsoft.Graphics.Canvas.Text.CanvasGlyphShaping[]

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