Back to API Reference
Class

CharacterWidthModifier

Inherits:PooledAttributeModifier<float>

Fits every character of a range into a cell of one width, centering the glyph inside it. Advances and offsets change; glyphs are never substituted.

Remarks

Parameter: the cell width with a unit — 1em for a full-width CJK cell, 0.5em for a half-width one, or a raw pixel amount. auto, and any non-positive width, measures the range and uses its widest glyph. Runs ahead of letter and word spacing, whose tracking is added on top of the finished cell.
protected string AttributeKey{ get }
protected override AttributeChannel CreateChannel()
protected override void OnEnable()
protected override void OnDisable()
protected override void OnApply()