Skip to content

VideoSubtitleConfiguration

VideoSubtitleConfiguration #

Represents the configuration for video subtitles.

padding: ft.PaddingValue = field(default_factory=lambda: ft.Padding(left=16.0, top=0.0, right=16.0, bottom=24.0)) #

The padding to be used for the subtitles.

text_align: ft.TextAlign = ft.TextAlign.CENTER #

The text alignment to be used for the subtitles.

text_scale_factor: ft.Number = 1.0 #

Defines the scale factor for the subtitle text.

text_style: ft.TextStyle = field(default_factory=lambda: ft.TextStyle(height=1.4, size=32.0, letter_spacing=0.0, word_spacing=0.0, color=ft.Colors.WHITE, weight=ft.FontWeight.NORMAL, bgcolor=ft.Colors.BLACK54)) #

The text style to be used for the subtitles.

visible: bool = True #

Whether the subtitles should be visible or not.