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: LookupSubtable + FontWrite> FontWrite for Lookup<T>
impl<T: LookupSubtable + 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.
source§fn table_type(&self) -> TableType
fn table_type(&self) -> TableType
The type of this table. Read more
source§impl<T: Ord> Ord for Lookup<T>
impl<T: Ord> Ord for Lookup<T>
source§impl<T: PartialEq> PartialEq for Lookup<T>
impl<T: PartialEq> PartialEq for Lookup<T>
source§impl<T: PartialOrd> PartialOrd for Lookup<T>
impl<T: PartialOrd> PartialOrd for Lookup<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl<T: RemapVariationIndices> RemapVariationIndices for Lookup<T>
impl<T: RemapVariationIndices> RemapVariationIndices for Lookup<T>
source§fn remap_variation_indices(&mut self, key_map: &VariationIndexRemapping)
fn remap_variation_indices(&mut self, key_map: &VariationIndexRemapping)
Remap any
TemporaryDeltaSetIds to their final VariationIndex valuessource§impl<T: Validate> Validate for Lookup<T>
impl<T: Validate> Validate for Lookup<T>
source§fn validate_impl(&self, ctx: &mut ValidationCtx)
fn validate_impl(&self, ctx: &mut ValidationCtx)
Validate this table. Read more
impl<T: Eq> Eq for Lookup<T>
impl<T> StructuralEq for Lookup<T>
impl<T> StructuralPartialEq for Lookup<T>
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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.