pub struct FontVariationAxis {
pub tag: Tag,
pub name: Option<String>,
pub range: Rangef,
pub default: f32,
pub hidden: bool,
}Expand description
A single variation axis of a variable font, e.g. weight (wght) or width (wdth).
Obtained via FontData::variation_axes.
Fields§
§tag: TagThe axis tag, e.g. wght or wdth.
name: Option<String>Human-readable axis name, if the font provides one (e.g. “Weight”).
range: RangefValid range of values for this axis, min..=max.
default: f32The value used when the axis is not overridden.
Whether the font recommends hiding this axis from user interfaces.
Trait 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FontVariationAxis
impl Debug for FontVariationAxis
Source§impl PartialEq for FontVariationAxis
impl PartialEq for FontVariationAxis
impl StructuralPartialEq for FontVariationAxis
Auto Trait Implementations§
impl Forget for FontVariationAxis
impl Freeze for FontVariationAxis
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more