[][src]Struct font_kit::loader::FontTransform

pub struct FontTransform {
    pub scale_x: f32,
    pub skew_x: f32,
    pub skew_y: f32,
    pub scale_y: f32,
}

The transform that glyphs will be transformed by.

Fields

scale_x: f32

Scale in the x direction

skew_x: f32

Skew in the x direction

skew_y: f32

Skew in the y direction

scale_y: f32

Scale in the y direction

Methods

impl FontTransform[src]

pub fn new(scale_x: f32, skew_x: f32, skew_y: f32, scale_y: f32) -> Self[src]

Initializes a FontTransform to the provided values

pub fn identity() -> Self[src]

Initializes a FontTransform to the identity transform

Trait Implementations

impl Clone for FontTransform[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for FontTransform[src]

impl Debug for FontTransform[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]