Interface: TextOptions
Defined in: mobjects/text/Text.ts:10
Options for creating a Text mobject
Extended by
Properties
color?
optionalcolor:string
Defined in: mobjects/text/Text.ts:22
Text color as CSS color string. Default: '#ffffff'
fillOpacity?
optionalfillOpacity:number
Defined in: mobjects/text/Text.ts:24
Fill opacity from 0 to 1. Default: 1
fontFamily?
optionalfontFamily:string
Defined in: mobjects/text/Text.ts:16
Font family. Default: 'CMU Serif, Georgia, Times New Roman, serif' (Manim-like)
fontSize?
optionalfontSize:number
Defined in: mobjects/text/Text.ts:14
Font size in pixels. Default: 48
fontStyle?
optionalfontStyle:string
Defined in: mobjects/text/Text.ts:20
Font style ('normal' | 'italic'). Default: 'normal'
fontUrl?
optionalfontUrl:string
Defined in: mobjects/text/Text.ts:34
URL to a font file (OTF/TTF) for glyph vector extraction. When provided, loadGlyphs() can extract glyph outlines for stroke-draw animation.
fontWeight?
optionalfontWeight:string|number
Defined in: mobjects/text/Text.ts:18
Font weight. Default: 'normal'
letterSpacing?
optionalletterSpacing:number
Defined in: mobjects/text/Text.ts:30
Letter spacing in pixels. Default: 0
lineHeight?
optionallineHeight:number
Defined in: mobjects/text/Text.ts:28
Line height multiplier. Default: 1.2
strokeWidth?
optionalstrokeWidth:number
Defined in: mobjects/text/Text.ts:26
Stroke width for outlined text. Default: 0
text
text:
string
Defined in: mobjects/text/Text.ts:12
The text content to display
textAlign?
optionaltextAlign:"center"|"left"|"right"
Defined in: mobjects/text/Text.ts:32
Text alignment. Default: 'center'