Struct read_fonts::tables::cmap::VariationSelector
source · #[repr(C)]#[repr(packed)]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 format 14 subtable to Default UVS Table. May be 0.
non_default_uvs_offset: BigEndian<Nullable<Offset32>>Offset from the start of the format 14 subtable to Non-Default UVS Table. May be 0.
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 format 14 subtable to Default UVS Table. May be 0.
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>>
Attempt to resolve default_uvs_offset.
sourcepub fn non_default_uvs_offset(&self) -> Nullable<Offset32>
pub fn non_default_uvs_offset(&self) -> Nullable<Offset32>
Offset from the start of the format 14 subtable to Non-Default UVS Table. May be 0.
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>>
Attempt to resolve non_default_uvs_offset.
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>
Auto Trait Implementations§
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