Back to API Reference
Class

LetterSpacingModifier

Inherits:PooledAttributeModifier<float>

Applies character spacing (tracking) adjustments to text ranges.

Remarks

Parameter: spacing value with unit. 10 — add 10 pixels between characters -5 — reduce spacing by 5 pixels 0.5em — add 0.5 em (relative to font size) Overlapping ranges resolve innermost-wins and never compound, across modifiers as well as across nested tags: one tracking value reaches each character, whichever range set it. For cursive joining scripts (Arabic, Syriac, N'Ko, Adlam, etc.), visual kashida (tatweel) bars are rendered between connected letter pairs using 9-slice SDF rendering, preserving the appearance of cursive connections at any spacing value.
protected string AttributeKey{ get }
protected override AttributeChannel CreateChannel()
protected override void OnApply()