logo
pub trait GlyphMapping {
    fn index(&self, c: char) -> usize;
}
Expand description

Mapping from characters to glyph indices.

Required methods

Maps a character to a glyph index.

If c isn’t included in the font the index of a suitable replacement glyph is returned.

Implementors