Skip to main content

update_font_database

Function update_font_database 

Source
pub fn update_font_database(
    font_root: &Utf8Path,
    db_url: &str,
) -> AppResult<usize>
Expand description

Updates the font database by scanning the provided root directory.

This function synchronizes the database with the disk, removes stale entries, parses new font files in parallel to extract family names, and inserts them into the database.

Returns the number of new font files added.