Trait GlyphMapping
Other items inembedded_graphics::mono_font::mapping
pub trait GlyphMapping { fn index(&self, c: char) -> usize; }
Mapping from characters to glyph indices.
fn index(&self, c: char) -> usize
Maps a character to a glyph index.
If c isn’t included in the font the index of a suitable replacement glyph is returned.
c
impl GlyphMapping for StrGlyphMapping<'_>
impl<F> GlyphMapping for F where F: Fn(char) -> usize,