Enum read_fonts::tables::gsub::SubstitutionLookup
source · pub enum SubstitutionLookup<'a> {
Single(Lookup<'a, SingleSubst<'a>>),
Multiple(Lookup<'a, MultipleSubstFormat1<'a>>),
Alternate(Lookup<'a, AlternateSubstFormat1<'a>>),
Ligature(Lookup<'a, LigatureSubstFormat1<'a>>),
Contextual(Lookup<'a, SubstitutionSequenceContext<'a>>),
ChainContextual(Lookup<'a, SubstitutionChainContext<'a>>),
Extension(Lookup<'a, ExtensionSubtable<'a>>),
Reverse(Lookup<'a, ReverseChainSingleSubstFormat1<'a>>),
}
Expand description
A GSUB Lookup subtable.
Variants§
Single(Lookup<'a, SingleSubst<'a>>)
Multiple(Lookup<'a, MultipleSubstFormat1<'a>>)
Alternate(Lookup<'a, AlternateSubstFormat1<'a>>)
Ligature(Lookup<'a, LigatureSubstFormat1<'a>>)
Contextual(Lookup<'a, SubstitutionSequenceContext<'a>>)
ChainContextual(Lookup<'a, SubstitutionChainContext<'a>>)
Extension(Lookup<'a, ExtensionSubtable<'a>>)
Reverse(Lookup<'a, ReverseChainSingleSubstFormat1<'a>>)
Implementations§
source§impl<'a> SubstitutionLookup<'a>
impl<'a> SubstitutionLookup<'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<SubstitutionSubtables<'a>, ReadError>
pub fn subtables(&self) -> Result<SubstitutionSubtables<'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 SubstitutionLookup
enum itself.
Trait Implementations§
source§impl<'a> Debug for SubstitutionLookup<'a>
impl<'a> Debug for SubstitutionLookup<'a>
source§impl<'a> FontRead<'a> for SubstitutionLookup<'a>
impl<'a> FontRead<'a> for SubstitutionLookup<'a>
Auto Trait Implementations§
impl<'a> Freeze for SubstitutionLookup<'a>
impl<'a> RefUnwindSafe for SubstitutionLookup<'a>
impl<'a> !Send for SubstitutionLookup<'a>
impl<'a> !Sync for SubstitutionLookup<'a>
impl<'a> Unpin for SubstitutionLookup<'a>
impl<'a> UnwindSafe for SubstitutionLookup<'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