Skip to main content

Led2dFont

Enum Led2dFont 

Source
pub enum Led2dFont {
Show 45 variants Font3x4Trim, Font4x6, Font3x5Trim, Font5x7, Font4x6Trim, Font5x8, Font4x7Trim, Font6x9, Font5x8Trim, Font6x10, Font5x9Trim, Font6x12, Font5x11Trim, Font6x13, Font5x12Trim, Font6x13Bold, Font5x12TrimBold, Font6x13Italic, Font5x12TrimItalic, Font7x13, Font6x12Trim, Font7x13Bold, Font6x12TrimBold, Font7x13Italic, Font6x12TrimItalic, Font7x14, Font6x13Trim, Font7x14Bold, Font6x13TrimBold, Font8x13, Font7x12Trim, Font8x13Bold, Font7x12TrimBold, Font8x13Italic, Font7x12TrimItalic, Font9x15, Font8x14Trim, Font9x15Bold, Font8x14TrimBold, Font9x18, Font8x17Trim, Font9x18Bold, Font8x17TrimBold, Font10x20, Font9x19Trim,
}
Expand description

Fonts available for use with led2d module panels.

Fonts with Trim suffix remove blank spacing to pack text more tightly on small displays.

Variants§

§

Font3x4Trim

3x4 monospace font, trimmed (compact layout).

§

Font4x6

4x6 monospace font.

§

Font3x5Trim

3x5 monospace font, trimmed (compact layout).

§

Font5x7

5x7 monospace font.

§

Font4x6Trim

4x6 monospace font, trimmed (compact layout).

§

Font5x8

5x8 monospace font.

§

Font4x7Trim

4x7 monospace font, trimmed (compact layout).

§

Font6x9

6x9 monospace font.

§

Font5x8Trim

5x8 monospace font, trimmed (compact layout).

§

Font6x10

6x10 monospace font.

§

Font5x9Trim

5x9 monospace font, trimmed (compact layout).

§

Font6x12

6x12 monospace font.

§

Font5x11Trim

5x11 monospace font, trimmed (compact layout).

§

Font6x13

6x13 monospace font.

§

Font5x12Trim

5x12 monospace font, trimmed (compact layout).

§

Font6x13Bold

6x13 bold monospace font.

§

Font5x12TrimBold

5x12 bold monospace font, trimmed (compact layout).

§

Font6x13Italic

6x13 italic monospace font.

§

Font5x12TrimItalic

5x12 italic monospace font, trimmed (compact layout).

§

Font7x13

7x13 monospace font.

§

Font6x12Trim

6x12 monospace font, trimmed (compact layout).

§

Font7x13Bold

7x13 bold monospace font.

§

Font6x12TrimBold

6x12 bold monospace font, trimmed (compact layout).

§

Font7x13Italic

7x13 italic monospace font.

§

Font6x12TrimItalic

6x12 italic monospace font, trimmed (compact layout).

§

Font7x14

7x14 monospace font.

§

Font6x13Trim

6x13 monospace font, trimmed (compact layout).

§

Font7x14Bold

7x14 bold monospace font.

§

Font6x13TrimBold

6x13 bold monospace font, trimmed (compact layout).

§

Font8x13

8x13 monospace font.

§

Font7x12Trim

7x12 monospace font, trimmed (compact layout).

§

Font8x13Bold

8x13 bold monospace font.

§

Font7x12TrimBold

7x12 bold monospace font, trimmed (compact layout).

§

Font8x13Italic

8x13 italic monospace font.

§

Font7x12TrimItalic

7x12 italic monospace font, trimmed (compact layout).

§

Font9x15

9x15 monospace font.

§

Font8x14Trim

8x14 monospace font, trimmed (compact layout).

§

Font9x15Bold

9x15 bold monospace font.

§

Font8x14TrimBold

8x14 bold monospace font, trimmed (compact layout).

§

Font9x18

9x18 monospace font.

§

Font8x17Trim

8x17 monospace font, trimmed (compact layout).

§

Font9x18Bold

9x18 bold monospace font.

§

Font8x17TrimBold

8x17 bold monospace font, trimmed (compact layout).

§

Font10x20

10x20 monospace font.

§

Font9x19Trim

9x19 monospace font, trimmed (compact layout).

Implementations§

Source§

impl Led2dFont

Source

pub fn to_font(self) -> MonoFont<'static>

Return the MonoFont for this variant.

Source

pub const fn spacing_reduction(self) -> (i32, i32)

Return spacing reduction for trimmed variants (width, height).

Trait Implementations§

Source§

impl Clone for Led2dFont

Source§

fn clone(&self) -> Led2dFont

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Led2dFont

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for Led2dFont

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<Src, Dst> LosslessTryInto<Dst> for Src
where Dst: LosslessTryFrom<Src>,

Source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
Source§

impl<Src, Dst> LossyInto<Dst> for Src
where Dst: LossyFrom<Src>,

Source§

fn lossy_into(self) -> Dst

Performs the conversion.
Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> StrictAs for T

Source§

fn strict_as<Dst>(self) -> Dst
where T: StrictCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> StrictCastFrom<Src> for Dst
where Src: StrictCast<Dst>,

Source§

fn strict_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.