Struct owned_ttf_parser::Variation
source · 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§
source§impl PartialEq for Variation
impl PartialEq for Variation
impl Copy for Variation
impl StructuralPartialEq for Variation
Auto Trait Implementations§
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