pub struct GlyphCacheConfig {
pub max_entry_age: u64,
pub eviction_frequency: u64,
pub max_cached_font_size: f32,
}Expand description
Configuration for glyph cache behavior.
Fields§
§max_entry_age: u64Maximum age (in frames) before an unused entry is evicted.
eviction_frequency: u64How often (in frames) to run the eviction pass.
max_cached_font_size: f32Maximum font size (in ppem) that will be cached. Glyphs rendered at sizes above this threshold are drawn directly each frame, since very large glyphs consume disproportionate atlas space.
Trait Implementations§
Source§impl Clone for GlyphCacheConfig
impl Clone for GlyphCacheConfig
Source§fn clone(&self) -> GlyphCacheConfig
fn clone(&self) -> GlyphCacheConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GlyphCacheConfig
impl Debug for GlyphCacheConfig
Auto Trait Implementations§
impl Freeze for GlyphCacheConfig
impl RefUnwindSafe for GlyphCacheConfig
impl Send for GlyphCacheConfig
impl Sync for GlyphCacheConfig
impl Unpin for GlyphCacheConfig
impl UnsafeUnpin for GlyphCacheConfig
impl UnwindSafe for GlyphCacheConfig
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