pub struct HheaTable {
pub ascender: i16,
pub descender: i16,
pub line_gap: i16,
pub advance_width_max: u16,
pub min_left_side_bearing: i16,
pub min_right_side_bearing: i16,
pub x_max_extent: i16,
pub caret_slope_rise: i16,
pub caret_slope_run: i16,
pub caret_offset: i16,
pub num_h_metrics: u16,
}
Expand description
hhea
horizontal header table
This table contains information for horizontal layout.
https://docs.microsoft.com/en-us/typography/opentype/spec/hhea
This struct is also used for the vhea
table.
Fields
ascender: i16
descender: i16
line_gap: i16
advance_width_max: u16
min_left_side_bearing: i16
min_right_side_bearing: i16
x_max_extent: i16
caret_slope_rise: i16
caret_slope_run: i16
caret_offset: i16
num_h_metrics: u16
Trait Implementations
sourceimpl PartialOrd<HheaTable> for HheaTable
impl PartialOrd<HheaTable> for HheaTable
sourcefn partial_cmp(&self, other: &HheaTable) -> Option<Ordering>
fn partial_cmp(&self, other: &HheaTable) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
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 more
sourceimpl<'a> ReadBinary<'a> for HheaTable
impl<'a> ReadBinary<'a> for HheaTable
sourceimpl<'a> WriteBinary<&'_ HheaTable> for HheaTable
impl<'a> WriteBinary<&'_ HheaTable> for HheaTable
sourcefn write<C: WriteContext>(
ctxt: &mut C,
table: &HheaTable
) -> Result<(), WriteError>
fn write<C: WriteContext>(
ctxt: &mut C,
table: &HheaTable
) -> Result<(), WriteError>
Write the binary representation of Self to ctxt
.
impl StructuralPartialEq for HheaTable
Auto Trait Implementations
impl RefUnwindSafe for HheaTable
impl Send for HheaTable
impl Sync for HheaTable
impl Unpin for HheaTable
impl UnwindSafe for HheaTable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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 T where
T: ReadBinary<'a>,
impl<'a, T> ReadBinaryDep<'a> for T where
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 T where
T: WriteBinary<HostType>,
impl<T, HostType> WriteBinaryDep<HostType> for T where
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
.