pub struct Rasterizer { /* private fields */ }
Implementations§
Source§impl Rasterizer
impl Rasterizer
pub fn new(settings: Settings) -> Rasterizer
pub fn sdfer(&self) -> &Sdfer
pub fn grayscale_atlas(&self) -> &FontAtlas<R>
pub fn color_atlas(&self) -> &FontAtlas<Bgra>
pub fn grayscale_atlas_mut(&mut self) -> &mut FontAtlas<R>
pub fn color_atlas_mut(&mut self) -> &mut FontAtlas<Bgra>
pub fn rasterize_glyph( &mut self, font: &Font, glyph_id: u16, 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