Struct allsorts_no_std::tables::HmtxTable[][src]

pub struct HmtxTable<'a> {
    pub h_metrics: ReadArrayCow<'a, LongHorMetric>,
    pub left_side_bearings: ReadArrayCow<'a, I16Be>,
}

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

impl<'a> HmtxTable<'a>[src]

pub fn horizontal_advance(
    &self,
    glyph_id: u16,
    num_h_metrics: u16
) -> Result<u16, ParseError>
[src]

Trait Implementations

impl<'a> Debug for HmtxTable<'a>[src]

impl<'a> ReadBinaryDep<'a> for HmtxTable<'a>[src]

type Args = (usize, usize)

type HostType = Self

impl<'a> WriteBinary<&'_ HmtxTable<'a>> for HmtxTable<'a>[src]

type Output = ()

The type of the value returned by write.

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, HostType> WriteBinaryDep<HostType> for T where
    T: WriteBinary<HostType>, 
[src]

type Args = ()

The type of the arguments supplied to write_dep.

type Output = <T as WriteBinary<HostType>>::Output

The type of the value returned by write_dep.