Struct read_fonts::tables::variations::VariationRegion
source · pub struct VariationRegion<'a> {
pub region_axes: &'a [RegionAxisCoordinates],
}
Expand description
The VariationRegion record
Fields§
§region_axes: &'a [RegionAxisCoordinates]
Array of region axis coordinates records, in the order of axes given in the ‘fvar’ table.
Implementations§
source§impl<'a> VariationRegion<'a>
impl<'a> VariationRegion<'a>
sourcepub fn region_axes(&self) -> &'a [RegionAxisCoordinates]
pub fn region_axes(&self) -> &'a [RegionAxisCoordinates]
Array of region axis coordinates records, in the order of axes given in the ‘fvar’ table.
source§impl<'a> VariationRegion<'a>
impl<'a> VariationRegion<'a>
source§impl<'a> VariationRegion<'a>
impl<'a> VariationRegion<'a>
sourcepub fn compute_scalar(&self, coords: &[F2Dot14]) -> Fixed
pub fn compute_scalar(&self, coords: &[F2Dot14]) -> Fixed
Computes a scalar value for this region and the specified normalized variation coordinates.
sourcepub fn compute_scalar_f32(&self, coords: &[F2Dot14]) -> f32
pub fn compute_scalar_f32(&self, coords: &[F2Dot14]) -> f32
Computes a floating point scalar value for this region and the specified normalized variation coordinates.
Trait Implementations§
source§impl<'a> Clone for VariationRegion<'a>
impl<'a> Clone for VariationRegion<'a>
source§fn clone(&self) -> VariationRegion<'a>
fn clone(&self) -> VariationRegion<'a>
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 ComputeSize for VariationRegion<'_>
impl ComputeSize for VariationRegion<'_>
source§impl<'a> Debug for VariationRegion<'a>
impl<'a> Debug for VariationRegion<'a>
source§impl<'a> FontReadWithArgs<'a> for VariationRegion<'a>
impl<'a> FontReadWithArgs<'a> for VariationRegion<'a>
source§impl<'a> Hash for VariationRegion<'a>
impl<'a> Hash for VariationRegion<'a>
source§impl<'a> Ord for VariationRegion<'a>
impl<'a> Ord for VariationRegion<'a>
source§fn cmp(&self, other: &VariationRegion<'a>) -> Ordering
fn cmp(&self, other: &VariationRegion<'a>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq for VariationRegion<'a>
impl<'a> PartialEq for VariationRegion<'a>
source§impl<'a> PartialOrd for VariationRegion<'a>
impl<'a> PartialOrd for VariationRegion<'a>
source§impl<'a> SomeRecord<'a> for VariationRegion<'a>
impl<'a> SomeRecord<'a> for VariationRegion<'a>
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl<'a> Eq for VariationRegion<'a>
impl<'a> StructuralPartialEq for VariationRegion<'a>
Auto Trait Implementations§
impl<'a> Freeze for VariationRegion<'a>
impl<'a> RefUnwindSafe for VariationRegion<'a>
impl<'a> Send for VariationRegion<'a>
impl<'a> Sync for VariationRegion<'a>
impl<'a> Unpin for VariationRegion<'a>
impl<'a> UnwindSafe for VariationRegion<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)