Skip to main content

Crate ass_font

Crate ass_font 

Source
Expand description

A library for extracting font names used in ASS (Advanced SubStation Alpha) subtitle files.

This crate provides functionality to detect the text encoding of an ASS file, read it, and extract all required fonts correctly by parsing both the Styles section and inline font overrides within Dialogue events (e.g. \fnFontName).

Functionsยง

extract_fonts
Extracts a unique, sorted list of font names used in the provided ASS subtitle content.
read_text_auto
Reads a file into a String, automatically detecting and decoding its character encoding.