/// Create a VectorFont from a slice of binary TTF data
Create a VectorFont from a slice of binary TTF data
Create a VectorFont from a slice of binary TTF data
pub fn from_slice(data: &[u8]) -> Self {
        VectorFont(
            rusttype::FontCollection::from_bytes(data.to_vec())
                .unwrap()
                .into_font()
                .unwrap(),
        )
    }
pub fn from_slice ( data : & [ u8 ] ) -> Self { VectorFont ( rusttype :: FontCollection :: from_bytes ( data . to_vec ( ) ) . unwrap ( ) . into_font ( ) . unwrap ( ) , ) }
Create a VectorFont from a slice of binary TTF data
Create a VectorFont from a slice of binary TTF data
data
&[u8]