pub struct Variation {
pub axis: Tag,
pub value: f32,
}
Expand description
A font variation value.
§Example
use ttf_parser::{Variation, Tag};
Variation { axis: Tag::from_bytes(b"wght"), value: 500.0 };
Fields§
§axis: Tag
An axis tag name.
value: f32
An axis value.
Trait Implementations§
impl Copy for Variation
impl StructuralPartialEq for Variation
Auto Trait Implementations§
impl Freeze for Variation
impl RefUnwindSafe for Variation
impl Send for Variation
impl Sync for Variation
impl Unpin for Variation
impl UnwindSafe for Variation
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)