pub struct FontVariantNumeric {
pub figures: Option<Figures>,
pub spacing: Option<NumericSpacing>,
pub fractions: Option<Fractions>,
pub ordinal: bool,
pub slashed_zero: bool,
}Expand description
Which figures a run is set with, from font-variant-numeric.
Fields§
§figures: Option<Figures>lining-nums or oldstyle-nums.
spacing: Option<NumericSpacing>proportional-nums or tabular-nums.
fractions: Option<Fractions>diagonal-fractions or stacked-fractions.
ordinal: boolordinal: the letters after a number in 1st.
slashed_zero: boolslashed-zero.
Implementations§
Source§impl FontVariantNumeric
impl FontVariantNumeric
Sourcepub const NORMAL: FontVariantNumeric
pub const NORMAL: FontVariantNumeric
normal: the face’s own figures.
Sourcepub fn settings(&self) -> Vec<FeatureSetting>
pub fn settings(&self) -> Vec<FeatureSetting>
The features this value asks the face for.
Trait Implementations§
Source§impl Clone for FontVariantNumeric
impl Clone for FontVariantNumeric
Source§fn clone(&self) -> FontVariantNumeric
fn clone(&self) -> FontVariantNumeric
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 FontVariantNumeric
Source§impl Debug for FontVariantNumeric
impl Debug for FontVariantNumeric
Source§impl Default for FontVariantNumeric
impl Default for FontVariantNumeric
Source§fn default() -> FontVariantNumeric
fn default() -> FontVariantNumeric
Returns the “default value” for a type. Read more
impl Eq for FontVariantNumeric
Source§impl Hash for FontVariantNumeric
impl Hash for FontVariantNumeric
Source§impl PartialEq for FontVariantNumeric
impl PartialEq for FontVariantNumeric
Source§impl Serialize for FontVariantNumeric
impl Serialize for FontVariantNumeric
impl StructuralPartialEq for FontVariantNumeric
Auto Trait Implementations§
impl Freeze for FontVariantNumeric
impl RefUnwindSafe for FontVariantNumeric
impl Send for FontVariantNumeric
impl Sync for FontVariantNumeric
impl Unpin for FontVariantNumeric
impl UnsafeUnpin for FontVariantNumeric
impl UnwindSafe for FontVariantNumeric
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.