Struct read_fonts::tables::layout::FeatureVariationRecord
source · #[repr(C)]#[repr(packed)]pub struct FeatureVariationRecord {
pub condition_set_offset: BigEndian<Offset32>,
pub feature_table_substitution_offset: BigEndian<Offset32>,
}Expand description
Part of FeatureVariations
Fields§
§condition_set_offset: BigEndian<Offset32>Offset to a condition set table, from beginning of FeatureVariations table.
feature_table_substitution_offset: BigEndian<Offset32>Offset to a feature table substitution table, from beginning of the FeatureVariations table.
Implementations§
source§impl FeatureVariationRecord
impl FeatureVariationRecord
sourcepub fn condition_set_offset(&self) -> Offset32
pub fn condition_set_offset(&self) -> Offset32
Offset to a condition set table, from beginning of FeatureVariations table.
sourcepub fn condition_set<'a>(
&self,
data: FontData<'a>
) -> Result<ConditionSet<'a>, ReadError>
pub fn condition_set<'a>( &self, data: FontData<'a> ) -> Result<ConditionSet<'a>, ReadError>
Attempt to resolve condition_set_offset.
sourcepub fn feature_table_substitution_offset(&self) -> Offset32
pub fn feature_table_substitution_offset(&self) -> Offset32
Offset to a feature table substitution table, from beginning of the FeatureVariations table.
sourcepub fn feature_table_substitution<'a>(
&self,
data: FontData<'a>
) -> Result<FeatureTableSubstitution<'a>, ReadError>
pub fn feature_table_substitution<'a>( &self, data: FontData<'a> ) -> Result<FeatureTableSubstitution<'a>, ReadError>
Attempt to resolve feature_table_substitution_offset.
Trait Implementations§
source§impl Clone for FeatureVariationRecord
impl Clone for FeatureVariationRecord
source§fn clone(&self) -> FeatureVariationRecord
fn clone(&self) -> FeatureVariationRecord
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for FeatureVariationRecord
impl Debug for FeatureVariationRecord
source§impl FixedSize for FeatureVariationRecord
impl FixedSize for FeatureVariationRecord
source§const RAW_BYTE_LEN: usize = 8usize
const RAW_BYTE_LEN: usize = 8usize
The raw size of this type, in bytes. Read more
source§impl<'a> SomeRecord<'a> for FeatureVariationRecord
impl<'a> SomeRecord<'a> for FeatureVariationRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
Auto Trait Implementations§
impl RefUnwindSafe for FeatureVariationRecord
impl Send for FeatureVariationRecord
impl Sync for FeatureVariationRecord
impl Unpin for FeatureVariationRecord
impl UnwindSafe for FeatureVariationRecord
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