Struct allsorts_no_std::bitmap::EmbeddedMetrics[][src]

pub struct EmbeddedMetrics {
    pub ppem_x: u8,
    pub ppem_y: u8,
    // some fields omitted
}

Metrics embedded alongside the bitmap.

One or both of the horizontal or vertical metrics with always be present.

Fields

ppem_x: u8

Horizontal pixels per em.

ppem_y: u8

Vertical pixels per em.

Implementations

impl EmbeddedMetrics[src]

pub fn hori(&self) -> Option<&BitmapMetrics>[src]

Metrics for horizontal layout.

pub fn vert(&self) -> Option<&BitmapMetrics>[src]

Metrics for vertical layout.

Trait Implementations

impl Debug for EmbeddedMetrics[src]

impl TryFrom<(&'_ BitmapInfo, &'_ BigGlyphMetrics)> for EmbeddedMetrics[src]

type Error = ParseError

The type returned in the event of a conversion error.

impl TryFrom<(&'_ BitmapInfo, &'_ SmallGlyphMetrics)> for EmbeddedMetrics[src]

type Error = ParseError

The type returned in the event of a conversion error.

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.