Struct write_fonts::tables::layout::Lookup
source · pub struct Lookup<T> {
pub lookup_flag: LookupFlag,
pub subtables: Vec<OffsetMarker<T>>,
pub mark_filtering_set: u16,
}Expand description
Fields§
§lookup_flag: LookupFlagLookup qualifiers
subtables: Vec<OffsetMarker<T>>Array of offsets to lookup subtables, from beginning of Lookup table
mark_filtering_set: u16Index (base 0) into GDEF mark glyph sets structure. This field is only present if the USE_MARK_FILTERING_SET lookup flag is set.
Implementations§
source§impl<T> Lookup<T>
impl<T> Lookup<T>
sourcepub fn new(
lookup_flag: LookupFlag,
subtables: Vec<T>,
mark_filtering_set: u16
) -> Self
pub fn new( lookup_flag: LookupFlag, subtables: Vec<T>, mark_filtering_set: u16 ) -> Self
Construct a new Lookup
source§impl Lookup<SequenceContext>
impl Lookup<SequenceContext>
sourcepub fn into_concrete<T: From<SequenceContext>>(self) -> Lookup<T>
pub fn into_concrete<T: From<SequenceContext>>(self) -> Lookup<T>
Convert this untyped SequenceContext into its GSUB or GPOS specific version
source§impl Lookup<ChainedSequenceContext>
impl Lookup<ChainedSequenceContext>
sourcepub fn into_concrete<T: From<ChainedSequenceContext>>(self) -> Lookup<T>
pub fn into_concrete<T: From<ChainedSequenceContext>>(self) -> Lookup<T>
Convert this untyped SequenceContext into its GSUB or GPOS specific version
Trait Implementations§
source§impl<T: LookupType + FontWrite> FontWrite for Lookup<T>
impl<T: LookupType + FontWrite> FontWrite for Lookup<T>
source§fn write_into(&self, writer: &mut TableWriter)
fn write_into(&self, writer: &mut TableWriter)
Write our data and information about offsets into this TableWriter.
fn name(&self) -> &'static str
Auto Trait Implementations§
impl<T> RefUnwindSafe for Lookup<T>where T: RefUnwindSafe,
impl<T> Send for Lookup<T>where T: Send,
impl<T> Sync for Lookup<T>where T: Sync,
impl<T> Unpin for Lookup<T>where T: Unpin,
impl<T> UnwindSafe for Lookup<T>where T: UnwindSafe,
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
source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere U: FromObjRef<T>,
source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.