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.

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.

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

loadcljs

(load this & args)

Method.

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.

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

readycljs

(ready this)

Property.

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.

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-ready!cljs

(set-ready! this val)

Property.

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.

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-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