pub struct ProceduralGlyphProvider;Expand description
A tiny built-in procedural glyph source for engine-side symbol plumbing.
Implementations§
Trait Implementations§
Source§impl Clone for ProceduralGlyphProvider
impl Clone for ProceduralGlyphProvider
Source§fn clone(&self) -> ProceduralGlyphProvider
fn clone(&self) -> ProceduralGlyphProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProceduralGlyphProvider
impl Debug for ProceduralGlyphProvider
Source§impl Default for ProceduralGlyphProvider
impl Default for ProceduralGlyphProvider
Source§fn default() -> ProceduralGlyphProvider
fn default() -> ProceduralGlyphProvider
Returns the “default value” for a type. Read more
Source§impl GlyphProvider for ProceduralGlyphProvider
impl GlyphProvider for ProceduralGlyphProvider
Source§fn load_glyph(&self, _font_stack: &str, codepoint: char) -> Option<GlyphRaster>
fn load_glyph(&self, _font_stack: &str, codepoint: char) -> Option<GlyphRaster>
Load or rasterize a glyph bitmap for the requested font/codepoint.
Source§fn render_em_pixels(&self) -> f32
fn render_em_pixels(&self) -> f32
Pixel size of 1 em as rasterized by this provider. Read more
Auto Trait Implementations§
impl Freeze for ProceduralGlyphProvider
impl RefUnwindSafe for ProceduralGlyphProvider
impl Send for ProceduralGlyphProvider
impl Sync for ProceduralGlyphProvider
impl Unpin for ProceduralGlyphProvider
impl UnsafeUnpin for ProceduralGlyphProvider
impl UnwindSafe for ProceduralGlyphProvider
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