pub struct Font<const C: usize = 256> {
pub number: u8,
pub name: FStr<64>,
pub height: u8,
pub char_spacing: u8,
pub line_spacing: u8,
pub characters: [CharacterEntry; C],
}
Expand description
Bitmap font — fontEntry
Fields§
§number: u8
Font number — fontNumber
name: FStr<64>
Name of font — fontName
height: u8
Height (pixels) — fontHeight
char_spacing: u8
Default pixel spacing between characters — fontCharSpacing
line_spacing: u8
Default pixel spacing between lines — fontLineSpacing
characters: [CharacterEntry; C]
Characters in font — characterTable
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<const C: usize> Freeze for Font<C>
impl<const C: usize> RefUnwindSafe for Font<C>
impl<const C: usize> Send for Font<C>
impl<const C: usize> Sync for Font<C>
impl<const C: usize> Unpin for Font<C>
impl<const C: usize> UnwindSafe for Font<C>
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