Struct gfx_graphics::GlyphCache
[−]
[src]
pub struct GlyphCache<R, F> where
R: Resources, { pub font: Font<'static>, // some fields omitted }
A struct used for caching a rendered font.
Fields
font: Font<'static>
The font.
Methods
impl<R, F> GlyphCache<R, F> where
R: Resources,
[src]
R: Resources,
fn from_font(font: Font<'static>, factory: F, settings: TextureSettings) -> Self
Constructs a GlyphCache from a Font.
fn new<P>(
font_path: P,
factory: F,
settings: TextureSettings
) -> Result<Self, Error> where
P: AsRef<Path>,
font_path: P,
factory: F,
settings: TextureSettings
) -> Result<Self, Error> where
P: AsRef<Path>,
Constructor for a GlyphCache.
Trait Implementations
impl<R, F> CharacterCache for GlyphCache<R, F> where
R: Resources,
F: Factory<R>,
[src]
R: Resources,
F: Factory<R>,