Function sixtyfps_rendering_backend_gl::register_font_from_memory[][src]

pub fn register_font_from_memory(data: &[u8]) -> Result<(), Box<dyn Error>>

This function can be used to register a custom TrueType font with SixtyFPS, for use with the font-family property. The provided slice must be a valid TrueType font.