Skip to main content

load_font_file

Function load_font_file 

Source
pub fn load_font_file(
    font_name: &str,
    resource_path: &str,
    files: &FileStore,
) -> Option<Vec<u8>>
Expand description

Try to load a font by name, using the substitution table. Checks embedded files first (for WASM), then falls back to disk.