Function font_kit::sources::mem::add_font

source ·
fn add_font(
    handle: Handle,
    families: &mut Vec<FamilyEntry>,
) -> Result<Font, FontLoadingError>
Expand description

Adds a font, but doesn’t sort. Returns the font that was created to check for validity.