Struct glium_graphics::GlyphCache
[−]
[src]
pub struct GlyphCache<F> { /* fields omitted */ }
Caches characters for a font.
Methods
impl<F> GlyphCache<F> where
F: Facade,
[src]
F: Facade,
fn from_font(font: Font<'static>, facade: F, settings: TextureSettings) -> Self
Constructs a GlyphCache from a Font.
fn new<P>(
font_path: P,
facade: F,
settings: TextureSettings
) -> Result<Self, Error> where
P: AsRef<Path>,
font_path: P,
facade: F,
settings: TextureSettings
) -> Result<Self, Error> where
P: AsRef<Path>,
Constructor for a GlyphCache.