Skip to content

API reference / Common / Engine types / RichTextStyle

Interface: RichTextStyle ​

What an element sets of the properties rich text may set (Table 225) — each left unset inherits from the element around it. A default style string (/DS) is one too: what a free text's or a rich text field's text starts from.

Properties ​

PropertyDescription
justification
| AnnotationTextJustification | null
text-align.
rise
number | null
vertical-align — how far the text rises off its baseline, in points.
size
number | null
font-size, in points.
italic
boolean | null
font-style.
weight
number | null
font-weight, from 100 to 900: normal is 400, bold 700.
family
string | null
font-family, the list as written.
color
Color | null
color.
decoration
[boolean, boolean] | null
text-decoration: underlined, and struck through.
stretch
RichTextFontStretch | null
font-stretch.