pub struct SelectedFeatureVariations {
pub gsub: Option<u32>,
pub gpos: Option<u32>,
pub has_lookup_variations: bool,
}Expand description
Which features variation indices were selected for a given location.
This selects feature variation records only. Lookup variations are applied
per feature with FeatureVariations::lookup_variations.
Fields§
§gsub: Option<u32>Feature variation index for the GSUB table.
gpos: Option<u32>Feature variation index for the GPOS table.
has_lookup_variations: boolTrue if either table has lookup variations, which then have to be resolved per feature.
Implementations§
Source§impl SelectedFeatureVariations
impl SelectedFeatureVariations
Sourcepub fn new<'a>(tables: &impl TableProvider<'a>, coords: &[F2Dot14]) -> Self
pub fn new<'a>(tables: &impl TableProvider<'a>, coords: &[F2Dot14]) -> Self
Selects the feature variation indices for the given font and coordinates.
Trait Implementations§
Source§impl Clone for SelectedFeatureVariations
impl Clone for SelectedFeatureVariations
Source§fn clone(&self) -> SelectedFeatureVariations
fn clone(&self) -> SelectedFeatureVariations
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SelectedFeatureVariations
Source§impl Debug for SelectedFeatureVariations
impl Debug for SelectedFeatureVariations
Source§impl Default for SelectedFeatureVariations
impl Default for SelectedFeatureVariations
Source§fn default() -> SelectedFeatureVariations
fn default() -> SelectedFeatureVariations
Returns the “default value” for a type. Read more
impl Eq for SelectedFeatureVariations
impl StructuralPartialEq for SelectedFeatureVariations
Auto Trait Implementations§
impl Freeze for SelectedFeatureVariations
impl RefUnwindSafe for SelectedFeatureVariations
impl Send for SelectedFeatureVariations
impl Sync for SelectedFeatureVariations
impl Unpin for SelectedFeatureVariations
impl UnsafeUnpin for SelectedFeatureVariations
impl UnwindSafe for SelectedFeatureVariations
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