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 / 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.

Entries

Link copied to clipboard

Normal baseline position. The default.

Link copied to clipboard

Raised and shrunk, like the exponent in .

Link copied to clipboard

Lowered and shrunk, like the index in H₂O.

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.