Trait graphics::character::CharacterCache
source · pub trait CharacterCache {
type Texture: ImageSize;
type Error;
fn character<'a>(
&'a mut self,
font_size: FontSize,
ch: char
) -> Result<Character<'a, Self::Texture>, Self::Error>;
fn width(&mut self, size: FontSize, text: &str) -> Result<Scalar, Self::Error> { ... }
}
Expand description
Stores characters in a buffer and loads them by demand.