Struct ggez::graphics::Font [−][src]
pub struct Font { /* fields omitted */ }
Expand description
A handle referring to a loaded Truetype font.
This is just an integer referring to a loaded font stored in the
Context
, so is cheap to copy. Note that fonts are cached and
currently never removed from the cache, since that would
invalidate the whole cache and require re-loading all the other
fonts. So, you do not want to load a font more than once.
Implementations
Default size for fonts.
Load a new TTF font from the given file.
Loads a new TrueType font from given bytes and into a gfx::GlyphBrush
owned
by the Context
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Font
impl UnwindSafe for Font
Blanket Implementations
Mutably borrows from an owned value. Read more