pub enum Subtable<'a> {
Ot(OtSubtable<'a>),
Aat(AatSubtable<'a>),
}
Expand description
A subtable in the kern
table.
Variants§
Ot(OtSubtable<'a>)
Aat(AatSubtable<'a>)
Implementations§
Source§impl<'a> Subtable<'a>
impl<'a> Subtable<'a>
Sourcepub fn is_vertical(&self) -> bool
pub fn is_vertical(&self) -> bool
True if the table has vertical kerning values.
Sourcepub fn is_horizontal(&self) -> bool
pub fn is_horizontal(&self) -> bool
True if the table has horizontal kerning values.
Sourcepub fn is_cross_stream(&self) -> bool
pub fn is_cross_stream(&self) -> bool
True if the table has cross-stream kerning values.
If text is normally written horizontally, adjustments will be vertical. If adjustment values are positive, the text will be moved up. If they are negative, the text will be moved down. If text is normally written vertically, adjustments will be horizontal. If adjustment values are positive, the text will be moved to the right. If they are negative, the text will be moved to the left.
Sourcepub fn is_variable(&self) -> bool
pub fn is_variable(&self) -> bool
True if the table has variation kerning values.
Sourcepub fn is_state_machine(&self) -> bool
pub fn is_state_machine(&self) -> bool
True if the table is represented by a state machine.
Sourcepub fn kind(&self) -> Result<SubtableKind<'a>, ReadError>
pub fn kind(&self) -> Result<SubtableKind<'a>, ReadError>
Returns an enum representing the actual subtable data.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Subtable<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more