Struct swash::BitmapStrike[][src]

pub struct BitmapStrike<'a> { /* fields omitted */ }

Collection of bitmaps of a specific size and format.

Implementations

impl<'a> BitmapStrike<'a>[src]

pub fn ppi(&self) -> u16[src]

Returns the device pixel density for which the strike was designed.

pub fn bit_depth(&self) -> u8[src]

Returns the bit depth of the strike.

pub fn ppem(&self) -> u16[src]

Returns the size of the strike in pixels per em.

pub fn contains(&self, glyph_id: GlyphId) -> bool[src]

Returns true if the specified glyph is covered by the strike.

Trait Implementations

impl<'a> Clone for BitmapStrike<'a>[src]

impl<'a> Copy for BitmapStrike<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for BitmapStrike<'a>

impl<'a> Send for BitmapStrike<'a>

impl<'a> Sync for BitmapStrike<'a>

impl<'a> Unpin for BitmapStrike<'a>

impl<'a> UnwindSafe for BitmapStrike<'a>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.