FontFaceSet: clear() Methode

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

Hinweis: Diese Funktion ist in Web Workers verfügbar.

Die clear() Methode des FontFaceSet-Interfaces entfernt alle über dieses Interface hinzugefügten Schriftarten. Schriftarten, die mit der @font-face-Regel hinzugefügt wurden, werden nicht entfernt.

Syntax

js
clear()

Parameter

Keine.

Rückgabewert

Keiner (undefined).

Spezifikationen

Specification
CSS Font Loading Module Level 3
# dom-fontfaceset-clear

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
clear

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support