[][src]Struct ttf_parser::kern::Subtable

pub struct Subtable<'a> { /* fields omitted */ }

A kerning subtable.

Implementations

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

pub fn is_horizontal(&self) -> bool[src]

Checks that subtable is for horizontal text.

pub fn is_variable(&self) -> bool[src]

Checks that subtable is variable.

pub fn has_cross_stream(&self) -> bool[src]

Checks that subtable has a cross-stream values.

pub fn has_state_machine(&self) -> bool[src]

Checks that subtable uses a state machine.

In this case glyphs_kerning() will return None and you have to use state_machine() instead.

pub fn glyphs_kerning(&self, left: GlyphId, right: GlyphId) -> Option<i16>[src]

Returns kerning for a pair of glyphs.

Returns None in case of state machine based subtable.

pub fn state_machine(&self) -> Option<Machine<'_>>[src]

Returns subtable's state machine if there is one.

Trait Implementations

impl<'a> Clone for Subtable<'a>[src]

impl<'a> Copy for Subtable<'a>[src]

impl<'_> Debug for Subtable<'_>[src]

impl<'a> Default for Subtable<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Subtable<'a>

impl<'a> Send for Subtable<'a>

impl<'a> Sync for Subtable<'a>

impl<'a> Unpin for Subtable<'a>

impl<'a> UnwindSafe for Subtable<'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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.