Struct embedded_graphics::fonts::Font24x32
source · [−]pub struct Font24x32;
Expand description
24x32 pixel monospace font.
The 24x32 font is a 2x scaling of the 12x16 font.
The 12x16 font sprite is shown here for reference:
Examples
See the module-level documentation for examples.
Trait Implementations
sourceimpl Font for Font24x32
impl Font for Font24x32
sourceconst FONT_IMAGE: &'static [u8]
const FONT_IMAGE: &'static [u8]
Raw image data containing the font.
sourceconst FONT_IMAGE_WIDTH: u32
const FONT_IMAGE_WIDTH: u32
The width of the raw image data. Read more
sourceconst CHARACTER_SIZE: Size
const CHARACTER_SIZE: Size
Size of a single character in pixel.
sourcefn char_offset(c: char) -> u32
fn char_offset(c: char) -> u32
Returns the position a character in the font.
sourceconst CHARACTER_SPACING: u32
const CHARACTER_SPACING: u32
Spacing between characters. Read more
sourceconst VARIABLE_WIDTH: bool
const VARIABLE_WIDTH: bool
Whether characters have a variable width or not. Read more
sourcefn char_width(c: char) -> u32
fn char_width(c: char) -> u32
Returns the actual width of a character in the font.
sourceimpl Ord for Font24x32
impl Ord for Font24x32
sourceimpl PartialOrd<Font24x32> for Font24x32
impl PartialOrd<Font24x32> for Font24x32
sourcefn partial_cmp(&self, other: &Font24x32) -> Option<Ordering>
fn partial_cmp(&self, other: &Font24x32) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Font24x32
impl Eq for Font24x32
impl StructuralEq for Font24x32
impl StructuralPartialEq for Font24x32
Auto Trait Implementations
impl RefUnwindSafe for Font24x32
impl Send for Font24x32
impl Sync for Font24x32
impl Unpin for Font24x32
impl UnwindSafe for Font24x32
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more