Struct allsorts::tables::HeadTable [−][src]
pub struct HeadTable {}Show 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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn 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
.
Auto Trait Implementations
impl RefUnwindSafe for HeadTable
impl UnwindSafe for HeadTable
Blanket Implementations
Mutably borrows from an owned value. Read more
type HostType = <T as ReadBinary<'a>>::HostType
pub fn read_dep(
&mut ReadCtxt<'a>,
<T as ReadBinaryDep<'a>>::Args
) -> Result<<T as ReadBinaryDep<'a>>::HostType, ParseError>
type Output = <T as WriteBinary<HostType>>::Output
type Output = <T as WriteBinary<HostType>>::Output
The type of the value returned by write_dep
.
pub fn write_dep<C>(
&mut C,
HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError> where
C: WriteContext,
pub fn write_dep<C>(
&mut C,
HostType,
<T as WriteBinaryDep<HostType>>::Args
) -> Result<<T as WriteBinaryDep<HostType>>::Output, WriteError> where
C: WriteContext,
Write the binary representation of Self to ctxt
.