Skip to Content

Function: clearFontCache()

function clearFontCache(): void;

Clear the module-level cache of parsed system fonts.

Conversion APIs cache parsed font objects for repeated calls with the same font options. Call this after installing, removing, or replacing fonts in a long-running process when subsequent conversions must reload font files.

Returns

void