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
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 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
The raw size of this type, in bytes. Read more
source§impl<'a> SomeRecord<'a> for VariationSelector
impl<'a> SomeRecord<'a> for VariationSelector
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for VariationSelector
impl Copy for VariationSelector
Auto Trait Implementations§
impl Freeze for VariationSelector
impl RefUnwindSafe for VariationSelector
impl Send for VariationSelector
impl Sync for VariationSelector
impl Unpin for VariationSelector
impl UnwindSafe for VariationSelector
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<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.