pub struct FontVariation {
pub tag: OpenTypeTag,
pub value: f64,
}Expand description
A single variable-font axis setting in user-space coordinates, e.g.
wght=650.
Fields§
§tag: OpenTypeTagThe four-character axis tag (e.g. wght).
value: f64The axis value in user-space units (e.g. 650 for wght).
Implementations§
Source§impl FontVariation
impl FontVariation
Sourcepub const fn new(tag: OpenTypeTag, value: f64) -> Self
pub const fn new(tag: OpenTypeTag, value: f64) -> Self
Creates an axis setting.
Trait Implementations§
Source§impl Clone for FontVariation
impl Clone for FontVariation
impl Copy for FontVariation
Source§impl Debug for FontVariation
impl Debug for FontVariation
Source§impl Display for FontVariation
Returns the tag=value form of the variation (e.g. wght=650), using the
invariant culture.
impl Display for FontVariation
Returns the tag=value form of the variation (e.g. wght=650), using the
invariant culture.
impl Eq for FontVariation
Source§impl Hash for FontVariation
impl Hash for FontVariation
Auto Trait Implementations§
impl Freeze for FontVariation
impl RefUnwindSafe for FontVariation
impl Send for FontVariation
impl Sync for FontVariation
impl Unpin for FontVariation
impl UnsafeUnpin for FontVariation
impl UnwindSafe for FontVariation
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more