Trait graphics::character::CharacterCache
[−]
[src]
pub trait CharacterCache { type Texture: ImageSize; fn character<'a>(&'a mut self, font_size: FontSize, ch: char) -> Character<'a, Self::Texture>; fn width(&mut self, size: FontSize, text: &str) -> Scalar { ... } }
Stores characters in a buffer and loads them by demand.
Associated Types
Required Methods
fn character<'a>(&'a mut self, font_size: FontSize, ch: char) -> Character<'a, Self::Texture>
[−]
Get reference to character.
Provided Methods
Implementors
impl<R, F> CharacterCache for GlyphCache<R, F> where R: Resources, F: Factory<R>
impl<R, F> CharacterCache for GlyphCache<R, F> where F: Factory<R>, R: Resources