pub struct VarAxis {
pub tag: [u8; 4],
pub min: f32,
pub def: f32,
pub max: f32,
pub hidden: bool,
pub name: String,
}Expand description
an axis of a variable font (fvar) in user units (min <= def <= max)
Fields§
§tag: [u8; 4]wght, wdth, slnt, ital, opsz or one of the font’s own
min: f32the smallest value
def: f32the default (the font’s own outlines)
max: f32the largest value
the font asks user interfaces not to show it (HIDDEN_AXIS)
name: Stringthe name table’s name (UTF-8; the tag when there is none)
Trait Implementations§
impl StructuralPartialEq for VarAxis
Auto Trait Implementations§
impl Forget for VarAxis
impl Freeze for VarAxis
impl RefUnwindSafe for VarAxis
impl Send for VarAxis
impl Sync for VarAxis
impl Unpin for VarAxis
impl UnsafeUnpin for VarAxis
impl UnwindSafe for VarAxis
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