FontFaceSet.clear()
The clear()
method of the FontFaceSet
interface removes all fonts added via this interface. Fonts added with the @font-face
rule are not removed.
Syntax
FontFaceSet.clear()
Parameters
None.
Return Value
Specifications
Specification |
---|
CSS Font Loading Module Level 3 # dom-fontfaceset-clear |
Browser compatibility
BCD tables only load in the browser