Back to API Reference
Class

SizeModifier

Inherits:PooledAttributeModifier<float>

Applies font size changes to text ranges.

Remarks

Parameter: size value with optional unit. 24 — absolute size in pixels 150% — percentage of base font size +10 — relative increase in pixels -5 — relative decrease in pixels Percentages and deltas are relative to the component font size, never to an enclosing tag — nested ranges overwrite, they do not compound (unlike CSS), and so do overlapping ranges of separate size modifiers. A line's height follows the largest size on it, in both directions, so a line whose visible content is entirely scaled grows or shrinks with it while a line that also carries unscaled text keeps its base height; an absolute <lh> in pixels pins the line regardless.
protected string AttributeKey{ get }
protected override AttributeChannel CreateChannel()
protected override void OnApply()