Skip to main content

clear_text_metrics_cache

Function clear_text_metrics_cache 

Source
pub fn clear_text_metrics_cache()
Expand description

Drop every cached measurement (the counters keep running).

Nothing in day needs this: a measurement is a pure function of its key, and the font set is fixed for the process (see font_families). It exists for a toolkit or app that registers a face at runtime and so does change what a family name measures to.