Struct read_fonts::tables::cmap::VariationSelector
source · #[repr(C, packed(1))]pub struct VariationSelector {
pub var_selector: BigEndian<Uint24>,
pub default_uvs_offset: BigEndian<Nullable<Offset32>>,
pub non_default_uvs_offset: BigEndian<Nullable<Offset32>>,
}Expand description
Part of Cmap14
Fields§
§var_selector: BigEndian<Uint24>Variation selector
default_uvs_offset: BigEndian<Nullable<Offset32>>Offset from the start of the Cmap14 subtable to Default UVS
Table. May be NULL.
non_default_uvs_offset: BigEndian<Nullable<Offset32>>Offset from the start of the Cmap14 subtable to Non-Default
UVS Table. May be NULL.
Implementations§
source§impl VariationSelector
impl VariationSelector
sourcepub fn var_selector(&self) -> Uint24
pub fn var_selector(&self) -> Uint24
Variation selector
sourcepub fn default_uvs_offset(&self) -> Nullable<Offset32>
pub fn default_uvs_offset(&self) -> Nullable<Offset32>
Offset from the start of the Cmap14 subtable to Default UVS
Table. May be NULL.
sourcepub fn default_uvs<'a>(
&self,
data: FontData<'a>
) -> Option<Result<DefaultUvs<'a>, ReadError>>
pub fn default_uvs<'a>( &self, data: FontData<'a> ) -> Option<Result<DefaultUvs<'a>, ReadError>>
Offset from the start of the Cmap14 subtable to Default UVS
Table. May be NULL.
The data argument should be retrieved from the parent table
By calling its offset_data method.
sourcepub fn non_default_uvs_offset(&self) -> Nullable<Offset32>
pub fn non_default_uvs_offset(&self) -> Nullable<Offset32>
Offset from the start of the Cmap14 subtable to Non-Default
UVS Table. May be NULL.
sourcepub fn non_default_uvs<'a>(
&self,
data: FontData<'a>
) -> Option<Result<NonDefaultUvs<'a>, ReadError>>
pub fn non_default_uvs<'a>( &self, data: FontData<'a> ) -> Option<Result<NonDefaultUvs<'a>, ReadError>>
Offset from the start of the Cmap14 subtable to Non-Default
UVS Table. May be NULL.
The data argument should be retrieved from the parent table
By calling its offset_data method.
Trait Implementations§
source§impl Clone for VariationSelector
impl Clone for VariationSelector
source§fn clone(&self) -> VariationSelector
fn clone(&self) -> VariationSelector
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for VariationSelector
impl Debug for VariationSelector
source§impl FixedSize for VariationSelector
impl FixedSize for VariationSelector
source§const RAW_BYTE_LEN: usize = 11usize
const RAW_BYTE_LEN: usize = 11usize
source§impl<'a> SomeRecord<'a> for VariationSelector
impl<'a> SomeRecord<'a> for VariationSelector
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl FromBytes for VariationSelector
SAFETY: see the FromBytes trait documentation.