pub fn load_ttf_font_from_bytes(bytes: &[u8]) -> Font {
    let context = get_context();
    let atlas = Rc::new(RefCell::new(Atlas::new(&mut get_context().quad_context)));

    let font = context
        .fonts_storage
        .make_font(FontInternal::load_from_bytes(atlas.clone(), bytes));

    font.populate_font_cache(&Font::ascii_character_list(), 15);

    font
}
/// Load font from bytes array, may be use in combination with include_bytes!
/// ```ignore
/// let font = load_ttf_font_from_bytes(include_bytes!("font.ttf"));
/// ```
Load font from bytes array, may be use in combination with include_bytes.
Load font from bytes array may be use in combination with include_bytes .
pub fn load_ttf_font_from_bytes(bytes: &[u8]) -> Font {
    let context = get_context();
    let atlas = Rc::new(RefCell::new(Atlas::new(&mut get_context().quad_context)));
    let font = context
        .fonts_storage
        .make_font(FontInternal::load_from_bytes(atlas.clone(), bytes));
    font.populate_font_cache(&Font::ascii_character_list(), 15);
    font
}
pub fn load_ttf_font_from_bytes ( bytes : & [ u8 ] ) -> Font { let context = get_context ( ) ; let atlas = Rc :: new ( RefCell :: new ( Atlas :: new ( & mut get_context ( ) . quad_context ) ) ) ; let font = context . fonts_storage . make_font ( FontInternal :: load_from_bytes ( atlas . clone ( ) , bytes ) ) ; font . populate_font_cache ( & Font :: ascii_character_list ( ) , 15 ) ; font }
Load font from bytes array, may be use in combination with include_bytes!
Load font from bytes array may be use in combination with include_bytes!
bytes
&[u8]
bytes
&[u8]