MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / from_data

Method from_data

src/graphics/text.rs:23–27  ·  view source on GitHub ↗
(data: &[u8])

Source from the content-addressed store, hash-verified

21 }
22
23 pub fn from_data(data: &[u8]) -> Font {
24 Font {
25 data: FontdueFont::from_bytes(data, FontSettings::default()).unwrap(),
26 }
27 }
28}
29
30pub struct SpriteFontGlyph {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected