pub struct GlyphCacheStats {
pub static_glyphs: usize,
pub variable_glyphs: usize,
pub page_count: usize,
pub unique_glyph_ids: usize,
pub subpixel_distribution: [usize; 4],
pub sizes_used: Vec<f32>,
}Expand description
Statistics about cached glyphs.
Fields§
§static_glyphs: usizeNumber of glyphs from static (non-variable) fonts.
variable_glyphs: usizeNumber of glyphs from variable fonts.
page_count: usizeNumber of atlas pages currently allocated.
unique_glyph_ids: usizeNumber of unique glyph IDs (same glyph may have multiple entries due to subpixel).
subpixel_distribution: [usize; 4]Distribution of entries across subpixel buckets.
sizes_used: Vec<f32>List of unique font sizes used.
Implementations§
Source§impl GlyphCacheStats
impl GlyphCacheStats
Sourcepub fn total_glyphs(&self) -> usize
pub fn total_glyphs(&self) -> usize
Total number of cached glyph entries (static + variable).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlyphCacheStats
impl RefUnwindSafe for GlyphCacheStats
impl Send for GlyphCacheStats
impl Sync for GlyphCacheStats
impl Unpin for GlyphCacheStats
impl UnsafeUnpin for GlyphCacheStats
impl UnwindSafe for GlyphCacheStats
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