The FontFaceSet interface of the CSS Font Loading API manages loading of font-faces and querying of their download status.
The FontFaceSet interface of the CSS Font Loading API manages loading of font-faces and querying of their download status.
(add this & args)
Method.
Adds a font to the font set.
Method. Adds a font to the font set.
(check this & args)
Method.
[Experimental]
A js.Boolean
that is true if the font list is available
bool = aFontFaceSet.check(font); bool = aFontFaceSet.check(font, text);
See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/check
Method. [Experimental] A `js.Boolean` that is true if the font list is available `bool = aFontFaceSet.check(font); bool = aFontFaceSet.check(font, text);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/check`
(clear this & args)
Method.
Removes all fonts from the font set.
Method. Removes all fonts from the font set.
(delete this & args)
Method.
Removes a font from the font set.
Method. Removes a font from the font set.
(load this & args)
Method.
[Experimental]
A js.Promise
of an js.Array
of web.fonts.FontFace
loaded.
promise is fulfilled when all the fonts are loaded; it is rejected
one of the fonts failed to load.
`result = aFontFaceSet.load(font);
result = aFontFaceSet.load(font, text);`
See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/load
Method. [Experimental] A `js.Promise` of an `js.Array` of `web.fonts.FontFace` loaded. promise is fulfilled when all the fonts are loaded; it is rejected one of the fonts failed to load. `result = aFontFaceSet.load(font); result = aFontFaceSet.load(font, text);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/load`
(onloading this)
Property.
An EventListener called whenever an event of type loading is indicating a font-face set has started loading.
Property. An EventListener called whenever an event of type loading is indicating a font-face set has started loading.
(onloadingdone this)
Property.
An EventListener called whenever an event of type loadingdone fired, indicating that a font face set has finished loading.
Property. An EventListener called whenever an event of type loadingdone fired, indicating that a font face set has finished loading.
(onloadingerror this)
Property.
An EventListener called whenever an event of type loadingerror fired, indicating that an error occurred whilst loading a font-face
Property. An EventListener called whenever an event of type loadingerror fired, indicating that an error occurred whilst loading a font-face
(ready this)
Property.
[Read Only] [Draft] [Experimental]
The ready readonly property of the web.fonts.FontFaceSet
interface
a js.Promise
that resolves to the given web.fonts.FontFaceSet
.
fontFaceSet.ready.then(function(fontFaceSet) { // ... });
See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/ready
Property. [Read Only] [Draft] [Experimental] The ready readonly property of the `web.fonts.FontFaceSet` interface a `js.Promise` that resolves to the given `web.fonts.FontFaceSet`. `fontFaceSet.ready.then(function(fontFaceSet) { // ... });` See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/ready`
(set-onloading! this val)
Property.
An EventListener called whenever an event of type loading is indicating a font-face set has started loading.
Property. An EventListener called whenever an event of type loading is indicating a font-face set has started loading.
(set-onloadingdone! this val)
Property.
An EventListener called whenever an event of type loadingdone fired, indicating that a font face set has finished loading.
Property. An EventListener called whenever an event of type loadingdone fired, indicating that a font face set has finished loading.
(set-onloadingerror! this val)
Property.
An EventListener called whenever an event of type loadingerror fired, indicating that an error occurred whilst loading a font-face
Property. An EventListener called whenever an event of type loadingerror fired, indicating that an error occurred whilst loading a font-face
(set-status! this val)
Property.
Indicates the font-face's loading status. It will be one of 'loading' 'loaded'.
Property. Indicates the font-face's loading status. It will be one of 'loading' 'loaded'.
(status this)
Property.
Indicates the font-face's loading status. It will be one of 'loading' 'loaded'.
Property. Indicates the font-face's loading status. It will be one of 'loading' 'loaded'.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close