[][src]Struct skia_safe::FontMetrics

#[repr(C)]
pub struct FontMetrics {
    pub top: scalar,
    pub ascent: scalar,
    pub descent: scalar,
    pub bottom: scalar,
    pub leading: scalar,
    pub avg_char_width: scalar,
    pub max_char_width: scalar,
    pub x_min: scalar,
    pub x_max: scalar,
    pub x_height: scalar,
    pub cap_height: scalar,
    // some fields omitted
}

Fields

top: scalarascent: scalardescent: scalarbottom: scalarleading: scalaravg_char_width: scalarmax_char_width: scalarx_min: scalarx_max: scalarx_height: scalarcap_height: scalar

Methods

impl FontMetrics[src]

Trait Implementations

impl Default for FontMetrics[src]

impl Clone for FontMetrics[src]

impl PartialEq<FontMetrics> for FontMetrics[src]

impl Copy for FontMetrics[src]

impl Debug for FontMetrics[src]

Auto Trait Implementations

Blanket Implementations

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

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> 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> 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]