pub struct CaptionStyle {
pub foreground_color: Option<CaptionSetting<Color>>,
pub foreground_opacity: Option<CaptionSetting<f64>>,
pub background_color: Option<CaptionSetting<Color>>,
pub background_opacity: Option<CaptionSetting<f64>>,
pub window_color: Option<CaptionSetting<Color>>,
pub window_opacity: Option<CaptionSetting<f64>>,
pub window_corner_radius: Option<CaptionSetting<f64>>,
pub edge: Option<CaptionSetting<CueTextEdge>>,
pub edge_color: Option<CaptionSetting<Color>>,
pub typeface: Option<CaptionSetting<CaptionTypeface>>,
pub text_scale: Option<CaptionSetting<f64>>,
}Expand description
What the system’s settings say of how subtitles and captions look.
Fields§
§foreground_color: Option<CaptionSetting<Color>>The text’s colour, opaque: Apple’s foreground colour, Android’s foregroundColor,
Windows’ FontColor.
foreground_opacity: Option<CaptionSetting<f64>>The text’s opacity, from 0.0 to 1.0: Apple’s foreground opacity, the alpha of Android’s
foregroundColor, Windows’ FontOpacity.
background_color: Option<CaptionSetting<Color>>The colour behind each character, opaque: Apple’s background colour, Android’s
backgroundColor, Windows’ BackgroundColor.
background_opacity: Option<CaptionSetting<f64>>The opacity behind each character: Apple’s background opacity, the alpha of Android’s
backgroundColor, Windows’ BackgroundOpacity.
window_color: Option<CaptionSetting<Color>>The colour of the box behind a whole cue, opaque: Apple’s window colour, Android’s
windowColor, Windows’ RegionColor.
window_opacity: Option<CaptionSetting<f64>>The opacity of the box behind a whole cue: Apple’s window opacity, the alpha of Android’s
windowColor, Windows’ RegionOpacity.
window_corner_radius: Option<CaptionSetting<f64>>The radius the box’s corners are rounded by, in logical pixels: Apple’s window rounded
corner radius, which Chromium and WebKit read as the cue’s border-radius.
edge: Option<CaptionSetting<CueTextEdge>>What is drawn round the characters: Apple’s text edge style, Android’s edgeType, Windows’
FontEffect.
edge_color: Option<CaptionSetting<Color>>The colour of the edge, with its opacity: Android’s edgeColor. Apple and Windows give
none.
typeface: Option<CaptionSetting<CaptionTypeface>>The font: Apple’s font for its default style, Android’s typeface, Windows’ FontStyle.
text_scale: Option<CaptionSetting<f64>>How many times its own size text is drawn at: Apple’s relative character size, Android’s
getFontScale, Windows’ FontSize as a fraction.