Struct read_fonts::tables::gvar::GlyphDelta
source · pub struct GlyphDelta {
pub position: u16,
pub x_delta: i32,
pub y_delta: i32,
}
Expand description
Delta information for a single point or component in a glyph.
Fields§
§position: u16
The point or component index.
x_delta: i32
The x delta.
y_delta: i32
The y delta.
Implementations§
source§impl GlyphDelta
impl GlyphDelta
sourcepub fn apply_scalar<D: PointCoord>(self, scalar: Fixed) -> Point<D>
pub fn apply_scalar<D: PointCoord>(self, scalar: Fixed) -> Point<D>
Applies a tuple scalar to this delta.
Trait Implementations§
source§impl Clone for GlyphDelta
impl Clone for GlyphDelta
source§fn clone(&self) -> GlyphDelta
fn clone(&self) -> GlyphDelta
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GlyphDelta
impl Debug for GlyphDelta
source§impl PartialEq for GlyphDelta
impl PartialEq for GlyphDelta
source§impl TupleDelta for GlyphDelta
impl TupleDelta for GlyphDelta
impl Copy for GlyphDelta
impl Eq for GlyphDelta
impl StructuralPartialEq for GlyphDelta
Auto Trait Implementations§
impl Freeze for GlyphDelta
impl RefUnwindSafe for GlyphDelta
impl Send for GlyphDelta
impl Sync for GlyphDelta
impl Unpin for GlyphDelta
impl UnwindSafe for GlyphDelta
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
)