pub struct MmAxis {
pub min: f32,
pub default: f32,
pub max: f32,
pub kind: AxisKind,
}Expand description
One design axis, in the design units a caller thinks in.
min/max come from the first and last knot of this axis’s design map,
which is where FreeType’s FT_Get_MM_Var gets them too — so the values a
caller compares against are the same ones PDFium reads out of
FT_MM_Var::axis.
Fields§
§min: f32Smallest design coordinate the font interpolates.
default: f32The coordinate the font’s own /WeightVector corresponds to.
max: f32Largest design coordinate the font interpolates.
kind: AxisKindWhat the axis controls.
Trait Implementations§
impl StructuralPartialEq for MmAxis
Auto Trait Implementations§
impl Freeze for MmAxis
impl RefUnwindSafe for MmAxis
impl Send for MmAxis
impl Sync for MmAxis
impl Unpin for MmAxis
impl UnsafeUnpin for MmAxis
impl UnwindSafe for MmAxis
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