pub struct Rasterizer { /* private fields */ }
Implementations§
Source§impl Rasterizer
impl Rasterizer
pub fn new(settings: Settings) -> Self
pub fn sdfer(&self) -> &Sdfer
pub fn grayscale_atlas(&self) -> &GrayscaleAtlas
pub fn color_atlas(&self) -> &ColorAtlas
pub fn grayscale_atlas_mut(&mut self) -> &mut GrayscaleAtlas
pub fn color_atlas_mut(&mut self) -> &mut ColorAtlas
pub fn rasterize_glyph( &mut self, font: &Font, glyph_id: GlyphId, dpxs_per_em: f32, ) -> Option<RasterizedGlyph>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rasterizer
impl RefUnwindSafe for Rasterizer
impl Send for Rasterizer
impl Sync for Rasterizer
impl Unpin for Rasterizer
impl UnwindSafe for Rasterizer
Blanket Implementations§
Source§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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