Click or drag to resize
CanvasTextLayoutSetCharacterSpacing Method
Sets the spacing between characters.

Namespace:  Microsoft.Graphics.Canvas.Text
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void SetCharacterSpacing(
	int characterIndex,
	int characterCount,
	float leadingSpacing,
	float trailingSpacing,
	float minimumAdvance
)

Parameters

characterIndex
Type: SystemInt32
characterCount
Type: SystemInt32
leadingSpacing
Type: SystemSingle
trailingSpacing
Type: SystemSingle
minimumAdvance
Type: SystemSingle
Remarks

Leading spacing is the spacing before each character, in reading order.

Trailing spacing is the spacing after each character, in reading order.

Minimum advance width is the minimum amount to move forward from one character to the next, to prevent characters from becoming too thin or zero-width. This must be zero or greater.

See Also