Liking cljdoc? Tell your friends :D

web.fonts.FontFaceSet

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.
raw docstring

addcljs

(add this & args)

Method.

Adds a font to the font set.

Method.

Adds a font to the font set.
sourceraw docstring

checkcljs

(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`
sourceraw docstring

clearcljs

(clear this & args)

Method.

Removes all fonts from the font set.

Method.

Removes all fonts from the font set.
sourceraw docstring

deletecljs

(delete this & args)

Method.

Removes a font from the font set.

Method.

Removes a font from the font set.
sourceraw docstring

loadcljs

(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`
sourceraw docstring

onloadingcljs

(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.
sourceraw docstring

onloadingdonecljs

(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.
sourceraw docstring

onloadingerrorcljs

(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
sourceraw docstring

readycljs

(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`
sourceraw docstring

set-onloading!cljs

(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.
sourceraw docstring

set-onloadingdone!cljs

(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.
sourceraw docstring

set-onloadingerror!cljs

(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
sourceraw docstring

set-status!cljs

(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'.
sourceraw docstring

statuscljs

(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'.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close