pub fn from_bytes(font: &'a [u8],
                      factory: F,
                      settings: TextureSettings)
                      -> Result<GlyphCache<'a, F, T>, ()> {
        let collection = rusttype::FontCollection::from_bytes(font).or(Err(()))?;
        let font = collection.into_font().or(Err(()))?;
        Ok(Self::from_font(font, factory, settings))
    }
/// Creates a GlyphCache for a font stored in memory.
Creates a GlyphCache for a font stored in memory.
Creates a GlyphCache for a font stored in memory .
pub fn from_bytes(font: &'a [u8],
                      factory: F,
                      settings: TextureSettings)
                      -> Result<GlyphCache<'a, F, T>, ()> {
        let collection = rusttype::FontCollection::from_bytes(font).or(Err(()))?;
        let font = collection.into_font().or(Err(()))?;
        Ok(Self::from_font(font, factory, settings))
    }
pub fn from_bytes ( font : & ' a [ u8 ] , factory : F , settings : TextureSettings ) -> Result < GlyphCache < ' a , F , T > , ( ) > { let collection = rusttype :: FontCollection :: from_bytes ( font ) . or ( Err ( ( ) ) ) ? ; let font = collection . into_font ( ) . or ( Err ( ( ) ) ) ? ; Ok ( Self :: from_font ( font , factory , settings ) ) }
Creates a GlyphCache for a font stored in memory.
Creates a GlyphCache for a font stored in memory .
font
&'a [u8]
factory
F
settings
TextureSettings