pub struct FontVariationAxis {
pub tag: String,
pub name: Option<String>,
pub min_value: f32,
pub default_value: f32,
pub max_value: f32,
pub hidden: bool,
}Expand description
One variable-font axis exposed by a face.
Fields§
§tag: StringOpenType tag such as "wght" or "wdth".
name: Option<String>Human-readable axis name when available.
min_value: f32§default_value: f32§max_value: f32Trait Implementations§
Source§impl Clone for FontVariationAxis
impl Clone for FontVariationAxis
Source§fn clone(&self) -> FontVariationAxis
fn clone(&self) -> FontVariationAxis
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FontVariationAxis
impl RefUnwindSafe for FontVariationAxis
impl Send for FontVariationAxis
impl Sync for FontVariationAxis
impl Unpin for FontVariationAxis
impl UnsafeUnpin for FontVariationAxis
impl UnwindSafe for FontVariationAxis
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