css-feature-toggle-devtools-extension icon indicating copy to clipboard operation
css-feature-toggle-devtools-extension copied to clipboard

Clear fonts loaded with the Font Loading API

Open keithclark opened this issue 6 years ago • 0 comments
trafficstars

Some font loading techniques use the Font Loading API alongside @font-face and/or <link>. In these cases, disabling the @font-face declaration doesn't prevent the font from rendering.

More information is available in #6, particularly this comment.

This should be a case of calling document.fonts.clear() at the appropriate time, however investigation is required to understand the impact this will have on a document when the toggle is disabled.

keithclark avatar Jan 31 '19 01:01 keithclark