Enum read_fonts::tables::gpos::PositionLookup
source · pub enum PositionLookup<'a> {
Single(Lookup<'a, SinglePos<'a>>),
Pair(Lookup<'a, PairPos<'a>>),
Cursive(Lookup<'a, CursivePosFormat1<'a>>),
MarkToBase(Lookup<'a, MarkBasePosFormat1<'a>>),
MarkToLig(Lookup<'a, MarkLigPosFormat1<'a>>),
MarkToMark(Lookup<'a, MarkMarkPosFormat1<'a>>),
Contextual(Lookup<'a, PositionSequenceContext<'a>>),
ChainContextual(Lookup<'a, PositionChainContext<'a>>),
Extension(Lookup<'a, ExtensionSubtable<'a>>),
}
Expand description
A GPOS Lookup subtable.
Variants§
Single(Lookup<'a, SinglePos<'a>>)
Pair(Lookup<'a, PairPos<'a>>)
Cursive(Lookup<'a, CursivePosFormat1<'a>>)
MarkToBase(Lookup<'a, MarkBasePosFormat1<'a>>)
MarkToLig(Lookup<'a, MarkLigPosFormat1<'a>>)
MarkToMark(Lookup<'a, MarkMarkPosFormat1<'a>>)
Contextual(Lookup<'a, PositionSequenceContext<'a>>)
ChainContextual(Lookup<'a, PositionChainContext<'a>>)
Extension(Lookup<'a, ExtensionSubtable<'a>>)
Implementations§
source§impl<'a> PositionLookup<'a>
impl<'a> PositionLookup<'a>
pub fn lookup_flag(&self) -> LookupFlag
sourcepub fn lookup_type(&self) -> u16
pub fn lookup_type(&self) -> u16
Different enumerations for GSUB and GPOS
pub fn mark_filtering_set(&self) -> Option<u16>
sourcepub fn subtables(&self) -> Result<PositionSubtables<'a>, ReadError>
pub fn subtables(&self) -> Result<PositionSubtables<'a>, ReadError>
Return the subtables for this lookup.
This method handles both extension and non-extension lookups, and saves
the caller needing to dig into the PositionLookup
enum itself.
Trait Implementations§
source§impl<'a> Debug for PositionLookup<'a>
impl<'a> Debug for PositionLookup<'a>
source§impl<'a> FontRead<'a> for PositionLookup<'a>
impl<'a> FontRead<'a> for PositionLookup<'a>
Auto Trait Implementations§
impl<'a> Freeze for PositionLookup<'a>
impl<'a> RefUnwindSafe for PositionLookup<'a>
impl<'a> !Send for PositionLookup<'a>
impl<'a> !Sync for PositionLookup<'a>
impl<'a> Unpin for PositionLookup<'a>
impl<'a> UnwindSafe for PositionLookup<'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