pub struct HmtxTable<'a> {
pub h_metrics: ReadArrayCow<'a, LongHorMetric>,
pub left_side_bearings: ReadArrayCow<'a, I16Be>,
}
Expand description
hmtx
horizontal metrics table
https://docs.microsoft.com/en-us/typography/opentype/spec/hmtx
This struct is also used for vmtx
table.
Fields
h_metrics: ReadArrayCow<'a, LongHorMetric>
left_side_bearings: ReadArrayCow<'a, I16Be>
Implementations
sourceimpl<'a> HmtxTable<'a>
impl<'a> HmtxTable<'a>
pub fn horizontal_advance(
&self,
glyph_id: u16,
num_h_metrics: u16
) -> Result<u16, ParseError>
Trait Implementations
sourceimpl<'a> ReadBinaryDep<'a> for HmtxTable<'a>
impl<'a> ReadBinaryDep<'a> for HmtxTable<'a>
sourceimpl<'a> WriteBinary<&'_ HmtxTable<'a>> for HmtxTable<'a>
impl<'a> WriteBinary<&'_ HmtxTable<'a>> for HmtxTable<'a>
sourcefn write<C: WriteContext>(
ctxt: &mut C,
table: &HmtxTable<'a>
) -> Result<(), WriteError>
fn write<C: WriteContext>(
ctxt: &mut C,
table: &HmtxTable<'a>
) -> Result<(), WriteError>
Write the binary representation of Self to ctxt
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for HmtxTable<'a>
impl<'a> Send for HmtxTable<'a>
impl<'a> Sync for HmtxTable<'a>
impl<'a> Unpin for HmtxTable<'a>
impl<'a> UnwindSafe for HmtxTable<'a>
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<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
.