Search Docs
Loading...
Skip to content

Interface: TextRunInfo

A styled run of text within a text block, returned by block.getTextRuns. Matches @cesdk/engine’s TextRunInfo.

Properties#

Property Type Description
from number Start grapheme index (inclusive).
to number End grapheme index (exclusive).
text string The text content of this run.
color Color The text color.
fontWeight FontWeight The font weight.
fontStyle FontStyle The font style.
fontSize number The font size in the unit that getTextRuns takes, points by default, whatever the scene’s scene/fontSizeUnit is. getTextFontSizes and the text/fontSize property report the scene’s font-size unit.
textCase TextCase The text case transformation.
typeface Typeface The typeface used by this run.
resolvedFontFileUri string The resolved font file URI.
textDecoration TextDecorationConfig The text decoration configuration of this run.
scriptStyle ScriptStyle The script style of this run.
kerning number Additional kerning offset in em units.