TextScript
Vertical script position of a rich-text span.
Superscript and subscript spans are rendered at a reduced font size and shifted relative to the line's baseline — the classic x² / H₂O typography. The size reduction and baseline shift are computed by the layout engine so every platform backend renders the same geometry.
Only meaningful inside richText { span(...) { script = ... } } — a whole paragraph can't be "superscript of itself", so plain text { } blocks ignore this property.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.