Struct swash::scale::Scaler[][src]

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

Scales outline and bitmap glyphs.

See the module level documentation for detail.

Implementations

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

pub fn has_outlines(&self) -> bool[src]

Returns true if scalable glyph outlines are available.

pub fn scale_outline_into(
    &mut self,
    glyph_id: GlyphId,
    outline: &mut Outline
) -> bool
[src]

Scales an outline for the specified glyph into the provided outline.

pub fn scale_outline(&mut self, glyph_id: GlyphId) -> Option<Outline>[src]

Scales an outline for the specified glyph.

pub fn has_color_outlines(&self) -> bool[src]

Returns true if scalable color glyph outlines are available.

pub fn scale_color_outline_into(
    &mut self,
    glyph_id: GlyphId,
    outline: &mut Outline
) -> bool
[src]

Scales a color outline for the specified glyph into the provided outline.

pub fn scale_color_outline(&mut self, glyph_id: GlyphId) -> Option<Outline>[src]

Scales a color outline for the specified glyph.

pub fn has_bitmaps(&self) -> bool[src]

Returns true if alpha bitmaps are available.

pub fn scale_bitmap_into(
    &mut self,
    glyph_id: u16,
    strike: StrikeWith,
    image: &mut Image
) -> bool
[src]

Scales a bitmap for the specified glyph and mode into the provided image.

pub fn scale_bitmap(
    &mut self,
    glyph_id: u16,
    strike: StrikeWith
) -> Option<Image>
[src]

Scales a bitmap for the specified glyph and mode.

pub fn has_color_bitmaps(&self) -> bool[src]

Returns true if color bitmaps are available.

pub fn scale_color_bitmap_into(
    &mut self,
    glyph_id: u16,
    strike: StrikeWith,
    image: &mut Image
) -> bool
[src]

Scales a color bitmap for the specified glyph and mode into the provided image.

pub fn scale_color_bitmap(
    &mut self,
    glyph_id: u16,
    strike: StrikeWith
) -> Option<Image>
[src]

Scales a color bitmap for the specified glyph and mode.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Scaler<'a>

impl<'a> Send for Scaler<'a>

impl<'a> Sync for Scaler<'a>

impl<'a> Unpin for Scaler<'a>

impl<'a> !UnwindSafe for Scaler<'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, 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.