SubtitlesStyle
Style options for subtitles. Overwrite styles defined in the subtitle content.
Properties
autoFlow?
optionalautoFlow:boolean
Enable auto flow.
If true, will ignore all subtitle positioning and text flow defined in the content, and simply fit all text together at the bottom-middle of the screen. This is useful especially when you adjust the font size scaling
- Not available on Web
backgroundColor?
optionalbackgroundColor:Color
The text background color.
extendSystemStyle?
optionalextendSystemStyle:boolean
Whether to extend the system's default subtitle style.
fontFamily?
optionalfontFamily:FontFamily
The font family.
fontScale?
optionalfontScale:number
The font size scaling.
This is a number holding a percentage of the size of the calculated default font size.
A value of 1.2 indicates 20% larger than the default font size.
A value of 0.8 indicates 80% of the default font size.
The value 1.0 indicates no size difference and is the default.
foregroundColor?
optionalforegroundColor:Color
The text foreground color.
textEdgeColor?
optionaltextEdgeColor:Color
The text edge color.
textEdgeType?
optionaltextEdgeType:TextEdgeType
The text edge type.
windowColor?
optionalwindowColor:Color
The box background color.