load_font_to_fontdb

Function load_font_to_fontdb 

Source
pub fn load_font_to_fontdb(
    text_font: &TextFont,
    font_system: &mut FontSystem,
    map_handle_to_font_id: &mut HashMap<AssetId<Font>, (ID, Arc<str>)>,
    fonts: &Assets<Font>,
) -> FontFaceInfo
Expand description

Add the font to the cosmic text’s FontSystem’s in-memory font database