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: u32
The version of psfu used. Currently it’s always 0.
size: u32
The size of the header in bytes. Pretty much always 32.
flags: Flags
Flags that specify a few things about the font. Currently there’s only one.
length: u32
The number of glyphs.
glyph_size: u32
The size in bytes of each glyph.
glyph_height: u32
The height of each glyph. In this library it always equals glyph_size
.
glyph_width: u32
The width of the glyphs.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Header
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