Skip to main content

set_font_cache_limit

Function set_font_cache_limit 

pub fn set_font_cache_limit(bytes: usize) -> usize
Expand description

Specify the max number of bytes that should be used by the font cache. If the cache needs to allocate more, it will purge previous entries.

Returns the previous setting, as if font_cache_limit had been called before the new limit was set.

  • bytes the maximum number of bytes for the font cache