Function modern_glyph

Source
pub fn modern_glyph(c: char) -> Option<(u8, [u16; 13])>
Expand description

Look up a single glyph’s (width, rows) in the built-in FontFace::Modern bitmap face (13 rows, baseline under row 10, bit width - 1 - col lit).

let (w, rows) = ferravex_render::text::modern_glyph('0').unwrap();
assert_eq!(w, 5);
assert_ne!(rows[3], 0);