struct FeatureVarsStorage {
gsub: AtomicU32,
gpos: AtomicU32,
has_lookup_variations: AtomicBool,
}Expand description
Lazy atomic storage for feature variation selections.
We don’t want to load the GSUB and GPOS tables unless explicitly requested.
Fields§
§gsub: AtomicU32§gpos: AtomicU32§has_lookup_variations: AtomicBoolWritten before the indices, so it is current once they are.
Implementations§
Source§impl FeatureVarsStorage
impl FeatureVarsStorage
fn new() -> Self
fn load( &self, font: &SharedFont, coords: &[NormalizedCoord], ) -> SelectedFeatureVariations
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FeatureVarsStorage
impl RefUnwindSafe for FeatureVarsStorage
impl Send for FeatureVarsStorage
impl Sync for FeatureVarsStorage
impl Unpin for FeatureVarsStorage
impl UnsafeUnpin for FeatureVarsStorage
impl UnwindSafe for FeatureVarsStorage
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