SubtitleTextSize

sealed interface SubtitleTextSize

Represents the text size for subtitles.

This interface provides options for defining the subtitle text size, allowing for either a fractional size relative to the View's height or a fixed size with a specific unit.

It overrides the caption font scale set by the user in the CaptioningManager.

Inheritors

Types

Link copied to clipboard
data class Fixed(@Dimension val unit: Int, val size: Float) : SubtitleTextSize

Represents a fixed size for caption text.

Link copied to clipboard
data class Fractional(val fractionOfHeight: Float, val ignorePadding: Boolean = false) : SubtitleTextSize

Represents a text size calculated as a fraction of the View's height, optionally ignoring the View's vertical padding.