pub struct GlyphTracker { /* private fields */ }Expand description
Tracks glyphs that were requested but not found in the font atlas.
Implementations§
Source§impl GlyphTracker
impl GlyphTracker
Sourcepub fn new() -> GlyphTracker
pub fn new() -> GlyphTracker
Creates a new empty glyph tracker.
Sourcepub fn record_missing(&self, glyph: &str)
pub fn record_missing(&self, glyph: &str)
Records a glyph as missing.
Sourcepub fn missing_glyphs(&self) -> HashSet<CompactString>
pub fn missing_glyphs(&self) -> HashSet<CompactString>
Returns a copy of all missing glyphs.
Trait Implementations§
Source§impl Debug for GlyphTracker
impl Debug for GlyphTracker
Source§impl Default for GlyphTracker
impl Default for GlyphTracker
Source§fn default() -> GlyphTracker
fn default() -> GlyphTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for GlyphTracker
impl !RefUnwindSafe for GlyphTracker
impl Send for GlyphTracker
impl !Sync for GlyphTracker
impl Unpin for GlyphTracker
impl UnsafeUnpin for GlyphTracker
impl UnwindSafe for GlyphTracker
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