[][src]Function libass_sys::ass_set_selective_style_override_enabled

pub unsafe extern "C" fn ass_set_selective_style_override_enabled(
    priv_: *mut ASS_Renderer,
    bits: c_int
)

\brief Set selective style override mode. If enabled, the renderer attempts to override the ASS script's styling of normal subtitles, without affecting explicitly positioned text. If an event looks like a normal subtitle, parts of the font style are copied from the user style set with ass_set_selective_style_override(). Warning: the heuristic used for deciding when to override the style is rather rough, and enabling this option can lead to incorrectly rendered subtitles. Since the ASS format doesn't have any support for allowing end-users to customize subtitle styling, this feature can only be implemented on "best effort" basis, and has to rely on heuristics that can easily break. \param priv renderer handle \param bits bit mask comprised of ASS_OverrideBits values.