Static zng_ext_font::FONT_CHANGED_EVENT

source ·
pub static FONT_CHANGED_EVENT: Event<FontChangedArgs>
Expand description

Change in FONTS that may cause a font query to now give a different result.

§Cache

Every time this event updates the font cache is cleared. Meaning that even if the query returns the same font it will be a new reference.

Fonts only unload when all references to then are dropped, so you can still continue using old references if you don’t want to monitor this event.