Skip to main content

Type Alias: MarkupTextOptions

MarkupTextOptions = TextOptions

Defined in: mobjects/text/MarkupText.ts:37

MarkupText uses the same base options as Text. The text field should contain Pango-like XML markup.

Supported tags: , - Bold text , - Italic text , - Underlined text , - Strikethrough text - Superscript - Subscript - Larger text (1.2x) - Smaller text (0.83x) - Monospace / code font <span ...> - Span with attributes: font_family="..." / font="..." font_size="..." (absolute px, or relative like "larger"/"smaller"/percentage) color="..." / foreground="..." / fgcolor="..." background="..." / bgcolor="..." weight="..." (bold, normal, 100-900) style="..." (italic, normal, oblique) underline="single" / underline="none" strikethrough="true" / strikethrough="false" variant="..." (normal, small-caps) size="..." (alias for font_size)

Tags can be nested arbitrarily: bold italic

Special characters: & < > " '