Struct allsorts_no_std::bitmap::BitmapGlyph[][src]

pub struct BitmapGlyph {
    pub ppem_x: Option<u16>,
    pub ppem_y: Option<u16>,
    pub metrics: Metrics,
    pub bitmap: Bitmap,
}

A bitmap glyph with metrics.

Fields

ppem_x: Option<u16>

Horizontal pixels per em.

Will be None if image data is a vector image.

ppem_y: Option<u16>

Vertical pixels per em.

Will be None if image data is a vector image.

metrics: Metrics

Glyph metrics in pixels.

bitmap: Bitmap

Bitmap data.

Trait Implementations

impl<'a> From<(&'_ SbixStrike<'a>, &'_ SbixGlyph<'a>)> for BitmapGlyph[src]

impl<'a> TryFrom<&'_ SVGDocumentRecord<'a>> for BitmapGlyph[src]

type Error = ParseError

The type returned in the event of a conversion error.

impl<'a> TryFrom<(&'_ BitmapInfo, GlyphBitmapData<'a>)> for BitmapGlyph[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.