pub struct Hdr {
pub flags: u16,
pub upem: i32,
pub asc: i32,
pub desc: i32,
pub gap: i32,
pub caph: i32,
pub xh: i32,
pub ulpos: i32,
pub ulthick: i32,
pub nglyphs: u32,
pub baseid: u32,
}Expand description
the SGF1-compatible header every font kind has (font_data): what gc_scale and the text metrics read. i16 fields sign-extended, upem / nglyphs zero-extended.
Fields§
§flags: u16§upem: i32§asc: i32§desc: i32§gap: i32§caph: i32§xh: i32§ulpos: i32§ulthick: i32§nglyphs: u32§baseid: u32Trait Implementations§
Auto Trait Implementations§
impl Forget for Hdr
impl Freeze for Hdr
impl RefUnwindSafe for Hdr
impl Send for Hdr
impl Sync for Hdr
impl Unpin for Hdr
impl UnsafeUnpin for Hdr
impl UnwindSafe for Hdr
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