ReadonlyfontThe font size, in canvas pixels. Always greater than 0.
ReadonlyhorizontalThe HorizontalAlignment — where this run sits relative to its baseline position.
ReadonlytextThe text content of this run.
StaticgetReturns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
An immutable text run style — content, size, weight, italics, letter spacing, and horizontalAlignment. Produced by VectorTextBuilder#build and never mutated after. A text run carries only content and style (no color, no placement, no font — the font is the composite's font source), so it is freely shareable: pass the same
VectorTextto multiple text draw ops to reuse one style across several runs. Exposes read-only metadata — VectorText#text, VectorText#fontSize, and VectorText#horizontalAlignment.Since
Lens Scripting Version 374
Snap OS
Example