pub struct Header {
pub magic: [u8; 4],
pub version: u32,
pub size: u32,
pub flags: Flags,
pub length: u32,
pub glyph_size: u32,
pub glyph_height: u32,
pub glyph_width: u32,
}Expand description
The font header.
Fields§
§magic: [u8; 4]Magic that is consistent among all psfu files.
version: u32The version of psfu used. Currently it’s always 0.
size: u32The size of the header in bytes. Pretty much always 32.
flags: FlagsFlags that specify a few things about the font. Currently there’s only one.
length: u32The number of glyphs.
glyph_size: u32The size in bytes of each glyph.
glyph_height: u32The height of each glyph. In this library it always equals glyph_size.
glyph_width: u32The width of the glyphs.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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