pub struct Scaler<'a> { /* private fields */ }
Expand description
Scales outline and bitmap glyphs.
See the module level documentation for detail.
Implementations§
source§impl<'a> Scaler<'a>
impl<'a> Scaler<'a>
sourcepub fn has_outlines(&self) -> bool
pub fn has_outlines(&self) -> bool
Returns true if scalable glyph outlines are available.
sourcepub fn scale_outline_into(
&mut self,
glyph_id: GlyphId,
outline: &mut Outline,
) -> bool
pub fn scale_outline_into( &mut self, glyph_id: GlyphId, outline: &mut Outline, ) -> bool
Scales an outline for the specified glyph into the provided outline.
sourcepub fn scale_outline(&mut self, glyph_id: GlyphId) -> Option<Outline>
pub fn scale_outline(&mut self, glyph_id: GlyphId) -> Option<Outline>
Scales an outline for the specified glyph.
sourcepub fn has_color_outlines(&self) -> bool
pub fn has_color_outlines(&self) -> bool
Returns true if scalable color glyph outlines are available.
sourcepub fn scale_color_outline_into(
&mut self,
glyph_id: GlyphId,
outline: &mut Outline,
) -> bool
pub fn scale_color_outline_into( &mut self, glyph_id: GlyphId, outline: &mut Outline, ) -> bool
Scales a color outline for the specified glyph into the provided outline.
sourcepub fn scale_color_outline(&mut self, glyph_id: GlyphId) -> Option<Outline>
pub fn scale_color_outline(&mut self, glyph_id: GlyphId) -> Option<Outline>
Scales a color outline for the specified glyph.
sourcepub fn has_bitmaps(&self) -> bool
pub fn has_bitmaps(&self) -> bool
Returns true if alpha bitmaps are available.
sourcepub fn scale_bitmap_into(
&mut self,
glyph_id: u16,
strike: StrikeWith,
image: &mut Image,
) -> bool
pub fn scale_bitmap_into( &mut self, glyph_id: u16, strike: StrikeWith, image: &mut Image, ) -> bool
Scales a bitmap for the specified glyph and mode into the provided image.
sourcepub fn scale_bitmap(
&mut self,
glyph_id: u16,
strike: StrikeWith,
) -> Option<Image>
pub fn scale_bitmap( &mut self, glyph_id: u16, strike: StrikeWith, ) -> Option<Image>
Scales a bitmap for the specified glyph and mode.
sourcepub fn has_color_bitmaps(&self) -> bool
pub fn has_color_bitmaps(&self) -> bool
Returns true if color bitmaps are available.
sourcepub fn scale_color_bitmap_into(
&mut self,
glyph_id: u16,
strike: StrikeWith,
image: &mut Image,
) -> bool
pub fn scale_color_bitmap_into( &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.
sourcepub fn scale_color_bitmap(
&mut self,
glyph_id: u16,
strike: StrikeWith,
) -> Option<Image>
pub fn scale_color_bitmap( &mut self, glyph_id: u16, strike: StrikeWith, ) -> Option<Image>
Scales a color bitmap for the specified glyph and mode.