pub struct HeadTable {Show 18 fields
pub major_version: u16,
pub minor_version: u16,
pub font_revision: Fixed,
pub check_sum_adjustment: u32,
pub magic_number: u32,
pub flags: u16,
pub units_per_em: u16,
pub created: i64,
pub modified: i64,
pub x_min: i16,
pub y_min: i16,
pub x_max: i16,
pub y_max: i16,
pub mac_style: u16,
pub lowest_rec_ppem: u16,
pub font_direction_hint: i16,
pub index_to_loc_format: IndexToLocFormat,
pub glyph_data_format: i16,
}
Expand description
Fields
major_version: u16
minor_version: u16
font_revision: Fixed
check_sum_adjustment: u32
magic_number: u32
flags: u16
units_per_em: u16
created: i64
modified: i64
x_min: i16
y_min: i16
x_max: i16
y_max: i16
mac_style: u16
lowest_rec_ppem: u16
font_direction_hint: i16
index_to_loc_format: IndexToLocFormat
glyph_data_format: i16
Implementations
Trait Implementations
sourceimpl PartialOrd<HeadTable> for HeadTable
impl PartialOrd<HeadTable> for HeadTable
sourcefn partial_cmp(&self, other: &HeadTable) -> Option<Ordering>
fn partial_cmp(&self, other: &HeadTable) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl<'a> ReadBinary<'a> for HeadTable
impl<'a> ReadBinary<'a> for HeadTable
sourceimpl WriteBinary<&HeadTable> for HeadTable
impl WriteBinary<&HeadTable> for HeadTable
sourcefn write<C: WriteContext>(
ctxt: &mut C,
table: &HeadTable
) -> Result<Self::Output, WriteError>
fn write<C: WriteContext>(
ctxt: &mut C,
table: &HeadTable
) -> Result<Self::Output, WriteError>
Writes the table to the WriteContext
and returns a placeholder to the check_sum_adjustment
field.
The check_sum_adjustment
field requires special handling to calculate. See:
https://docs.microsoft.com/en-us/typography/opentype/spec/head
type Output = Placeholder<U32Be, u32>
type Output = Placeholder<U32Be, u32>
The type of the value returned by
write
.impl StructuralPartialEq for HeadTable
Auto Trait Implementations
impl RefUnwindSafe for HeadTable
impl Send for HeadTable
impl Sync for HeadTable
impl Unpin for HeadTable
impl UnwindSafe for HeadTable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, T> ReadBinaryDep<'a> for Twhere
T: ReadBinary<'a>,
impl<'a, T> ReadBinaryDep<'a> for Twhere
T: ReadBinary<'a>,
type Args = ()
type HostType = <T as ReadBinary<'a>>::HostType
fn read_dep(
ctxt: &mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
sourceimpl<T, HostType> WriteBinaryDep<HostType> for Twhere
T: WriteBinary<HostType>,
impl<T, HostType> WriteBinaryDep<HostType> for Twhere
T: WriteBinary<HostType>,
type Output = <T as WriteBinary<HostType>>::Output
type Output = <T as WriteBinary<HostType>>::Output
The type of the value returned by
write_dep
.sourcefn write_dep<C>(
ctxt: &mut C,
val: HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError>where
C: WriteContext,
fn write_dep<C>(
ctxt: &mut C,
val: HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError>where
C: WriteContext,
Write the binary representation of Self to
ctxt
.