[][src]Struct fontdue::Metrics

pub struct Metrics {
    pub width: usize,
    pub height: usize,
    pub bearing_x: f32,
    pub bearing_y: f32,
    pub advance_x: f32,
    pub advance_y: f32,
    // some fields omitted
}

Encapsulates all layout information associated with a glyph for a fixed scale.

Fields

width: usize

The width of the associated glyph.

height: usize

The height of the associated glyph.

bearing_x: f32

The left side bearing. Used in horizontal fonts.

bearing_y: f32

The top side bearing. Used in vertical fonts.

advance_x: f32

The advance width. Used in horizontal fonts.

advance_y: f32

The advance height. Used in vertical fonts.

Trait Implementations

impl PartialEq<Metrics> for Metrics[src]

impl Copy for Metrics[src]

impl Clone for Metrics[src]

Auto Trait Implementations

impl Unpin for Metrics

impl Send for Metrics

impl Sync for Metrics

impl UnwindSafe for Metrics

impl RefUnwindSafe for Metrics

Blanket Implementations

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src]

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.