pub struct BaseValue {
pub value: F48Dot16,
pub delta_px: i32,
}Expand description
A baseline coordinate read at a location in variation space and a size.
A coordinate carries at most one adjustment, and the two kinds land in
different units. A VariationIndex names a delta in design units, so it is
already folded into value. A Device table adjusts by whole pixels, and
scaling that into design units needs the units per em, which this table
does not know; a caller working in font units wants
value + delta_px * upem / ppem, and one working in pixels has the
adjustment already.
Fields§
§value: F48Dot16The coordinate in design units, with any variation delta applied.
delta_px: i32The adjustment the coordinate’s device table makes at the requested
size, in pixels. Zero unless the coordinate names a Device table that
covers that size.
Trait Implementations§
impl Copy for BaseValue
impl Eq for BaseValue
impl StructuralPartialEq for BaseValue
Auto Trait Implementations§
impl Freeze for BaseValue
impl RefUnwindSafe for BaseValue
impl Send for BaseValue
impl Sync for BaseValue
impl Unpin for BaseValue
impl UnsafeUnpin for BaseValue
impl UnwindSafe for BaseValue
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