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]
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]
&mut self,
glyph_id: GlyphId,
outline: &mut Outline
) -> bool
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]
&mut self,
glyph_id: GlyphId,
outline: &mut Outline
) -> bool
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]
&mut self,
glyph_id: u16,
strike: StrikeWith,
image: &mut Image
) -> bool
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]
&mut self,
glyph_id: u16,
strike: StrikeWith
) -> Option<Image>
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]
&mut self,
glyph_id: u16,
strike: StrikeWith,
image: &mut Image
) -> bool
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]
&mut self,
glyph_id: u16,
strike: StrikeWith
) -> Option<Image>
Scales a color bitmap for the specified glyph and mode.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Scaler<'a>
impl<'a> RefUnwindSafe for Scaler<'a>
impl<'a> !UnwindSafe for Scaler<'a>
impl<'a> !UnwindSafe for Scaler<'a>