pub struct FontVariation {
pub tag: [u8; 4],
pub value: f32,
}Expand description
A font variation axis setting.
Used for variable fonts to specify axis values like weight, width, etc.
Fields§
§tag: [u8; 4]The 4-byte axis tag (e.g., b“wght“ for weight).
value: f32The axis value.
Implementations§
Trait Implementations§
Source§impl Clone for FontVariation
impl Clone for FontVariation
Source§fn clone(&self) -> FontVariation
fn clone(&self) -> FontVariation
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 moreSource§impl Debug for FontVariation
impl Debug for FontVariation
Source§impl Hash for FontVariation
impl Hash for FontVariation
Source§impl PartialEq for FontVariation
impl PartialEq for FontVariation
impl Copy for FontVariation
impl Eq 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 UnwindSafe for FontVariation
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