map_font_family

Function map_font_family 

Source
fn map_font_family(font: &str) -> Option<&'static str>
Expand description

Maps a font family name to its corresponding font file path.

Takes the name of the font family as input and attempts to find a matching font file. Returns the path to the font file if found, or None if the specified font is not available in the system.