pub fn load_font_file<P: Into<PathBuf>>(path: P) -> Vec<u8> {
    let mut data: Vec<u8> = Vec::new();
    let mut file = File::open(path.into()).expect("Could not open font file");
    file.read_to_end(&mut data)
        .expect("Could not read font file");
    data
}
/// Loads a font file into a `Vec<u8>`
Loads a font file into a `Vec`
Loads a font file into a ` Vec `
pub fn load_font_file<P: Into<PathBuf>>(path: P) -> Vec<u8> {
    let mut data: Vec<u8> = Vec::new();
    let mut file = File::open(path.into()).expect("Could not open font file");
    file.read_to_end(&mut data)
        .expect("Could not read font file");
    data
}
pub fn load_font_file < P : Into < PathBuf > > ( path : P ) -> Vec < u8 > { let mut data : Vec < u8 > = Vec :: new ( ) ; let mut file = File :: open ( path . into ( ) ) . expect ( " " ) ; file . read_to_end ( & mut data ) . expect ( " " ) ; data }
Loads a font file into a `Vec<u8>`
Loads a font file into a ` Vec<u8 > `
path
P
path
P