pub struct Rasterizer { /* private fields */ }Implementations§
Source§impl Rasterizer
impl Rasterizer
pub fn new() -> Self
pub fn with_options(options: RasterOptions) -> Self
pub fn rasterize(&self, glyphs: &[GlyphInfo]) -> Vec<RasterGlyph>
pub fn rasterize_glyphs( &self, font: &FontMatch, glyphs: &[GlyphInfo], ) -> RassaResult<Vec<RasterGlyph>>
pub fn rasterize_run(&self, run: &ShapedRun) -> RassaResult<Vec<RasterGlyph>>
pub fn outline_glyphs( &self, glyphs: &[RasterGlyph], radius: i32, ) -> Vec<RasterGlyph>
pub fn rasterize_outline_glyphs( &self, font: &FontMatch, glyphs: &[GlyphInfo], radius: i32, ) -> RassaResult<Vec<RasterGlyph>>
pub fn blur_glyphs( &self, glyphs: &[RasterGlyph], radius: u32, ) -> Vec<RasterGlyph>
pub fn clear_cache()
pub fn cache_stats() -> RasterCacheStats
Trait Implementations§
Source§impl Default for Rasterizer
impl Default for Rasterizer
Source§fn default() -> Rasterizer
fn default() -> Rasterizer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Rasterizer
impl RefUnwindSafe for Rasterizer
impl Send for Rasterizer
impl Sync for Rasterizer
impl Unpin for Rasterizer
impl UnsafeUnpin for Rasterizer
impl UnwindSafe for Rasterizer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more