[−][src]Struct ttf_parser::kern::Subtable
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,