pub fn load_truetype_font<P: AsRef<Path>>(&mut self, key: TruetypeFontKey, path: P) -> io::Result<()> {
        let path = path.as_ref();
        let font = TruetypeFont::from_file(path)?;

        self.truetype_fonts.insert(key, font);

        Ok(())
    }
/// Loads a `.ttf` font from the given path and associates it with the given key.
Loads a `.ttf` font from the given path and associates it with the given key.
Loads a ` . ttf ` font from the given path and associates it with the given key .
pub fn load_truetype_font<P: AsRef<Path>>(&mut self, key: TruetypeFontKey, path: P) -> io::Result<()> {
        let path = path.as_ref();
        let font = TruetypeFont::from_file(path)?;
        self.truetype_fonts.insert(key, font);
        Ok(())
    }
pub fn load_truetype_font < P : AsRef < Path > > ( & mut self , key : TruetypeFontKey , path : P ) -> io :: Result < ( ) > { let path = path . as_ref ( ) ; let font = TruetypeFont :: from_file ( path ) ? ; self . truetype_fonts . insert ( key , font ) ; Ok ( ( ) ) }
Loads a `.ttf` font from the given path and associates it with the given key.
Loads a ` . ttf ` font from the given path and associates it with the given key .
&mut self
key
TruetypeFontKey
path
P
&mut self
key
TruetypeFontKey
path
P