Struct read_fonts::tables::layout::FeatureVariationRecord
source · #[repr(C, packed(1))]pub struct FeatureVariationRecord {
pub condition_set_offset: BigEndian<Nullable<Offset32>>,
pub feature_table_substitution_offset: BigEndian<Nullable<Offset32>>,
}Expand description
Part of FeatureVariations
Fields§
§condition_set_offset: BigEndian<Nullable<Offset32>>Offset to a condition set table, from beginning of FeatureVariations table.
feature_table_substitution_offset: BigEndian<Nullable<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) -> Nullable<Offset32>
pub fn condition_set_offset(&self) -> Nullable<Offset32>
Offset to a condition set table, from beginning of FeatureVariations table.
sourcepub fn condition_set<'a>(
&self,
data: FontData<'a>
) -> Option<Result<ConditionSet<'a>, ReadError>>
pub fn condition_set<'a>( &self, data: FontData<'a> ) -> Option<Result<ConditionSet<'a>, ReadError>>
Offset to a condition set table, from beginning of FeatureVariations table.
The data argument should be retrieved from the parent table
By calling its offset_data method.
sourcepub fn feature_table_substitution_offset(&self) -> Nullable<Offset32>
pub fn feature_table_substitution_offset(&self) -> Nullable<Offset32>
Offset to a feature table substitution table, from beginning of the FeatureVariations table.
sourcepub fn feature_table_substitution<'a>(
&self,
data: FontData<'a>
) -> Option<Result<FeatureTableSubstitution<'a>, ReadError>>
pub fn feature_table_substitution<'a>( &self, data: FontData<'a> ) -> Option<Result<FeatureTableSubstitution<'a>, ReadError>>
Offset to a feature table substitution table, from beginning of the FeatureVariations table.
The data argument should be retrieved from the parent table
By calling its offset_data method.
Trait Implementations§
source§impl Clone for FeatureVariationRecord
impl Clone for FeatureVariationRecord
source§fn clone(&self) -> FeatureVariationRecord
fn clone(&self) -> FeatureVariationRecord
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl<'a> SomeRecord<'a> for FeatureVariationRecord
impl<'a> SomeRecord<'a> for FeatureVariationRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl FromBytes for FeatureVariationRecord
SAFETY: see the FromBytes trait documentation.