struct FeatureVarsStorage {
status: AtomicU32,
gsub: AtomicU32,
gpos: AtomicU32,
}Expand description
Lazy atomic storage for feature variation selections.
We don’t want to load the GSUB and GPOS tables unless explicitly requested.
Fields§
§status: AtomicU32§gsub: AtomicU32§gpos: AtomicU32Implementations§
Source§impl FeatureVarsStorage
impl FeatureVarsStorage
Sourceconst BOTH_ABSENT: u32
const BOTH_ABSENT: u32
Both GSUB and GPOS don’t have a selected feature variation.
Sourceconst GPOS_SHIFT: u32 = 16
const GPOS_SHIFT: u32 = 16
GPOS status is packed in the high 16 bits. GSUB status is packed in the low 16 bits.
fn new() -> Self
fn load(&self, font: &Font, coords: &[NormalizedCoord]) -> FontFeatureVariations
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