pub struct Font(/* private fields */);Expand description
A font identifier.
Use install_user_font to obtain a font,
or take one of the associated constants for the default fonts.
Implementations§
Source§impl Font
impl Font
Sourcepub const DEFAULT_8X8: Font
pub const DEFAULT_8X8: Font
The default 8x8 font.
Sourcepub const DEFAULT_8X16: Font
pub const DEFAULT_8X16: Font
The default 8x16 font.
Sourcepub const DEFAULT_9X16: Font
pub const DEFAULT_9X16: Font
The default 9x16 font.
Sourcepub fn install_user_font(filename: impl AsRef<str>) -> Result<Self, FileError>
pub fn install_user_font(filename: impl AsRef<str>) -> Result<Self, FileError>
Installs a font from a .fnt file
This is the same as the module’s install_user_font function.
Trait Implementations§
impl Copy for Font
impl Eq for Font
impl StructuralPartialEq for Font
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl Send for Font
impl Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more