Struct allsorts_no_std::bitmap::BitmapMetrics[][src]

pub struct BitmapMetrics {
    pub origin_offset_x: i16,
    pub origin_offset_y: i16,
    pub advance: u8,
    pub ascender: i8,
    pub descender: i8,
}

The actual embedded bitmap glyph metrics in pixels.

Fields

origin_offset_x: i16

Distance in pixels from the horizontal origin to the left edge of the bitmap.

origin_offset_y: i16

Distance in pixels from the horizontal origin to the bottom edge of the bitmap.

advance: u8

Advance width in pixels.

ascender: i8

The spacing of the line before the baseline in pixels.

descender: i8

The spacing of the line after the baseline in pixels.

Trait Implementations

impl Debug for BitmapMetrics[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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.