Struct embedded_graphics::fonts::Font6x6
source · pub struct Font6x6;
Expand description
Trait Implementations§
source§impl Font for Font6x6
impl Font for Font6x6
source§const FONT_IMAGE: &'static [u8] = b"\x02\n\x14z& B\n\x88\x00\x00\x02\xf1\x0f<\x93\xcf<\xf3\xc0\x00 \x08\x1c\x02\n>\xa0I \x81\x07\x08\x00\x00\x04\x93\x01\x04\x92\x08\x04\x92H C\x84\"\x02\x00\x14\xf8\x86\x00\x81\x0f\xbe\x03\xe0\x08\x91\x0f\x1c\xf3\xcf\x08\xf3\xc0\x00\x80\x02\x0c\x00\x00>)\n\x00\x81\x07\x08\x80\x00\x10\x91\x08\x04\x10I\x10\x90H C\x84\x00\x02\x00\x14\xf2/\x00B\n\x88\x80\x08 \xf3\x8f<\x13\xcf \xf3\xc0 \x08\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00s\xce<\xe3\x8f<\x92\x07$\x82)<\xf1\x8f<\xe2H\xa2\x8a/\xb0\x83\x04\x00\nI \x92\x08 \x92\x01(\x83m$\x92I BH\xa2QA A\n\x00K\xce \x93\x8e,\xf2\x010\x82\xab$\xf2O<BH\xaa \x82 !\x00\x00\xaaI \x92\x08$\x92\t(\x82)$\x82\x8a\x04BE6P\x84 \x11\x00\x00rN<\xe3\x88<\x92\x06$\xe2)<\x81I<C\xc2\"\x88\x8f\xb0\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>\x80\x08\x00\x11\x83\x1c\x82\x02 \x80\x00\x00\xe1\xc0\x1c\x80\x00\x00\x02@\x18\x83\x00\x00A\x88\x00\x12D$\x80\x00(\x81N\x18\x92F \xe2I\"\xa2O\x10\x81\x06\x80\x02O<\xf3\xce\x1c\xe2\x020\x82\xa9$\xe1\xc9\x18\x82I\"C\xc20\x81\x89\x00\x02I \x92\x04\x04\x92\n(\x82)$\x80H\x04\xa2J*@D\x10\x81\x00\x00\x01\xaf<\xf1\x84\x18\x92\x04$b)\x18\x80H8A\x84\x14\xa3\x8f\x18\x83\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x02\x0c2(\x18\x93\xc4\x08\x00\x0f\xbcA\x0e8A\'\x00\x01\x04\x08\xf3\xc0\x08\x00\x0f\x12AH\x10\x02J\x12\x00\x08\x80\xa3\x82\x08\x81+\x00\x03\n$\xa2\x80\x00\x02\n8\xe3\xe0(\x02\xc5$\xf3\xca\x80A\x0e8\x01+ \x01\x04\x12\xb2\xc0\x18\x02\x0f\x10@\x88\x10\x02@\x12\x10\t\x80\x00\x08\x08\x01\xc7\x00C\x80$\xa2\x80\"\x02\x02.0\x880\x03\xc0\x08\x00\n\x80\x03\x8e8\x01\x03\x00\xc0\x0e\x08\xf3\xc0\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
const FONT_IMAGE: &'static [u8] = b"\x02\n\x14z& B\n\x88\x00\x00\x02\xf1\x0f<\x93\xcf<\xf3\xc0\x00 \x08\x1c\x02\n>\xa0I \x81\x07\x08\x00\x00\x04\x93\x01\x04\x92\x08\x04\x92H C\x84\"\x02\x00\x14\xf8\x86\x00\x81\x0f\xbe\x03\xe0\x08\x91\x0f\x1c\xf3\xcf\x08\xf3\xc0\x00\x80\x02\x0c\x00\x00>)\n\x00\x81\x07\x08\x80\x00\x10\x91\x08\x04\x10I\x10\x90H C\x84\x00\x02\x00\x14\xf2/\x00B\n\x88\x80\x08 \xf3\x8f<\x13\xcf \xf3\xc0 \x08\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00s\xce<\xe3\x8f<\x92\x07$\x82)<\xf1\x8f<\xe2H\xa2\x8a/\xb0\x83\x04\x00\nI \x92\x08 \x92\x01(\x83m$\x92I BH\xa2QA A\n\x00K\xce \x93\x8e,\xf2\x010\x82\xab$\xf2O<BH\xaa \x82 !\x00\x00\xaaI \x92\x08$\x92\t(\x82)$\x82\x8a\x04BE6P\x84 \x11\x00\x00rN<\xe3\x88<\x92\x06$\xe2)<\x81I<C\xc2\"\x88\x8f\xb0\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00>\x80\x08\x00\x11\x83\x1c\x82\x02 \x80\x00\x00\xe1\xc0\x1c\x80\x00\x00\x02@\x18\x83\x00\x00A\x88\x00\x12D$\x80\x00(\x81N\x18\x92F \xe2I\"\xa2O\x10\x81\x06\x80\x02O<\xf3\xce\x1c\xe2\x020\x82\xa9$\xe1\xc9\x18\x82I\"C\xc20\x81\x89\x00\x02I \x92\x04\x04\x92\n(\x82)$\x80H\x04\xa2J*@D\x10\x81\x00\x00\x01\xaf<\xf1\x84\x18\x92\x04$b)\x18\x80H8A\x84\x14\xa3\x8f\x18\x83\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x02\x0c2(\x18\x93\xc4\x08\x00\x0f\xbcA\x0e8A\'\x00\x01\x04\x08\xf3\xc0\x08\x00\x0f\x12AH\x10\x02J\x12\x00\x08\x80\xa3\x82\x08\x81+\x00\x03\n$\xa2\x80\x00\x02\n8\xe3\xe0(\x02\xc5$\xf3\xca\x80A\x0e8\x01+ \x01\x04\x12\xb2\xc0\x18\x02\x0f\x10@\x88\x10\x02@\x12\x10\t\x80\x00\x08\x08\x01\xc7\x00C\x80$\xa2\x80\"\x02\x02.0\x880\x03\xc0\x08\x00\n\x80\x03\x8e8\x01\x03\x00\xc0\x0e\x08\xf3\xc0\x1c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
Raw image data containing the font.
source§const FONT_IMAGE_WIDTH: u32 = 192u32
const FONT_IMAGE_WIDTH: u32 = 192u32
The width of the raw image data. Read more
source§const CHARACTER_SIZE: Size = _
const CHARACTER_SIZE: Size = _
Size of a single character in pixel.
source§const VARIABLE_WIDTH: bool = true
const VARIABLE_WIDTH: bool = true
Whether characters have a variable width or not. Read more
source§const CHARACTER_SPACING: u32 = 1u32
const CHARACTER_SPACING: u32 = 1u32
Spacing between characters. Read more
source§fn char_offset(c: char) -> u32
fn char_offset(c: char) -> u32
Returns the position a character in the font.
source§fn char_width(c: char) -> u32
fn char_width(c: char) -> u32
Returns the actual width of a character in the font.
source§impl Ord for Font6x6
impl Ord for Font6x6
source§impl PartialEq for Font6x6
impl PartialEq for Font6x6
source§impl PartialOrd for Font6x6
impl PartialOrd for Font6x6
1.0.0 · source§fn 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 moreimpl Copy for Font6x6
impl Eq for Font6x6
impl StructuralPartialEq for Font6x6
Auto Trait Implementations§
impl RefUnwindSafe for Font6x6
impl Send for Font6x6
impl Sync for Font6x6
impl Unpin for Font6x6
impl UnwindSafe for Font6x6
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