Liking cljdoc? Tell your friends :D

web.FontFace

The FontFace interface represents a single usable font face. allows control of the source of the font face, being a URL to external resource, or a buffer; it also allows control of when font face is loaded and its current status.

The FontFace interface represents a single usable font face.
allows control of the source of the font face, being a URL to
external resource, or a buffer; it also allows control of when
font face is loaded and its current status.
raw docstring

constructorcljs

Constructor.

The FontFace() constructor creates a new web.FontFace object.

family Specifies a name that will be used as the font face value for font properties. Takes the same type of values as the web.font-family descriptor of web.@font-face . source The font source. This can be either:

A URL Binary font data

descriptors Optional A set of optional descriptors passed as an object. It can have the following keys:

family: Family style: Style weight: Weight stretch: Stretch unicodeRange: Unicode range variant: variant featureSettings: Feature settings

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace

Constructor.

The FontFace() constructor creates a new `web.FontFace` object.

family
Specifies a name that will be used as the font face value for font properties. Takes the same type of values as the `web.font-family` descriptor of `web.@font-face` .
source
The font source. This can be either:

A URL
Binary font data


descriptors Optional
A set of optional descriptors passed as an object. It can have the following keys:

family: Family
style: Style
weight: Weight
stretch: Stretch
unicodeRange: Unicode range
variant: variant
featureSettings: Feature settings

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace`
sourceraw docstring

displaycljs

(display this)

Property.

The display property of the web.FontFace interface determines a font face is displayed based on whether and when it is downloaded ready to use. This property is equivalent to the CSS font-display

var display = FontFace.display FontFace.display = display

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/display

Property.

The display property of the `web.FontFace` interface determines
a font face is displayed based on whether and when it is downloaded
ready to use. This property is equivalent to the CSS font-display

`var display = FontFace.display
FontFace.display = display`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/display`
sourceraw docstring

familycljs

(family this)

Property.

The FontFace.family property allows the author to get or set font family of a web.FontFace object. This is equivalent to web.font-family descriptor of web.@font-face.

instanceOfFontFace.family = 'font family name'; var fontFace = instanceOfFontFace.family; // \"font family name\"

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/family

Property.

The FontFace.family property allows the author to get or set
font family of a `web.FontFace` object. This is equivalent to
`web.font-family` descriptor of `web.@font-face`.

`instanceOfFontFace.family = 'font family name';
var fontFace = instanceOfFontFace.family; // \"font family name\"`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/family`
sourceraw docstring

feature-settingscljs

(feature-settings this)

Property.

The featureSettings property of the web.FontFace interface or sets infrequently used font features that are not available a font's variant properties. It is equivalent to the web.font-feature-settings

var featureSettingDescriptor = FontFace.featureSettings; FontFace.featureSettings = featureSettingDescriptor;

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/featureSettings

Property.

The featureSettings property of the `web.FontFace` interface
or sets infrequently used font features that are not available
a font's variant properties. It is equivalent to the `web.font-feature-settings`

`var featureSettingDescriptor = FontFace.featureSettings;
FontFace.featureSettings = featureSettingDescriptor;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/featureSettings`
sourceraw docstring

loadcljs

(load this)

Method.

The load() method of the web.FontFace interface loads a font on current object's constructor-passed requirements, including location or source buffer, and returns a web.Promise that resolves the current FontFace object.

var promise = FontFace.load();

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/load

Method.

The load() method of the `web.FontFace` interface loads a font
on current object's constructor-passed requirements, including
location or source buffer, and returns a `web.Promise` that resolves
the current FontFace object.

`var promise = FontFace.load();`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/load`
sourceraw docstring

loadedcljs

(loaded this)

Property.

The loaded read-only property of the web.FontFace interface a web.Promise that resolves with the current FontFace object the font specified in the object's constructor is done loading rejects with a SyntaxError.

var aPromise = FontFace.loaded;

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/loaded

Property.

The loaded read-only property of the `web.FontFace` interface
a `web.Promise` that resolves with the current FontFace object
the font specified in the object's constructor is done loading
rejects with a SyntaxError.

`var aPromise = FontFace.loaded;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/loaded`
sourceraw docstring

set-display!cljs

(set-display! this val)

Property.

The display property of the web.FontFace interface determines a font face is displayed based on whether and when it is downloaded ready to use. This property is equivalent to the CSS font-display

var display = FontFace.display FontFace.display = display

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/display

Property.

The display property of the `web.FontFace` interface determines
a font face is displayed based on whether and when it is downloaded
ready to use. This property is equivalent to the CSS font-display

`var display = FontFace.display
FontFace.display = display`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/display`
sourceraw docstring

set-family!cljs

(set-family! this val)

Property.

The FontFace.family property allows the author to get or set font family of a web.FontFace object. This is equivalent to web.font-family descriptor of web.@font-face.

instanceOfFontFace.family = 'font family name'; var fontFace = instanceOfFontFace.family; // \"font family name\"

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/family

Property.

The FontFace.family property allows the author to get or set
font family of a `web.FontFace` object. This is equivalent to
`web.font-family` descriptor of `web.@font-face`.

`instanceOfFontFace.family = 'font family name';
var fontFace = instanceOfFontFace.family; // \"font family name\"`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/family`
sourceraw docstring

set-feature-settings!cljs

(set-feature-settings! this val)

Property.

The featureSettings property of the web.FontFace interface or sets infrequently used font features that are not available a font's variant properties. It is equivalent to the web.font-feature-settings

var featureSettingDescriptor = FontFace.featureSettings; FontFace.featureSettings = featureSettingDescriptor;

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/featureSettings

Property.

The featureSettings property of the `web.FontFace` interface
or sets infrequently used font features that are not available
a font's variant properties. It is equivalent to the `web.font-feature-settings`

`var featureSettingDescriptor = FontFace.featureSettings;
FontFace.featureSettings = featureSettingDescriptor;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/featureSettings`
sourceraw docstring

set-loaded!cljs

(set-loaded! this val)

Property.

The loaded read-only property of the web.FontFace interface a web.Promise that resolves with the current FontFace object the font specified in the object's constructor is done loading rejects with a SyntaxError.

var aPromise = FontFace.loaded;

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/loaded

Property.

The loaded read-only property of the `web.FontFace` interface
a `web.Promise` that resolves with the current FontFace object
the font specified in the object's constructor is done loading
rejects with a SyntaxError.

`var aPromise = FontFace.loaded;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/loaded`
sourceraw docstring

set-status!cljs

(set-status! this val)

Property.

The status read-only property of the web.FontFace interface an enumerated value indicating the status of the font, one of "loading", "loaded", or "error".

var status = FontFace.status;

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/status

Property.

The status read-only property of the `web.FontFace` interface
an enumerated value indicating the status of the font, one of
\"loading\", \"loaded\", or \"error\".

`var status = FontFace.status;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/status`
sourceraw docstring

set-stretch!cljs

(set-stretch! this val)

Property.

The stretch property of the web.FontFace interface retrieves sets how the font stretches. It is equivalent to the web.font-stretch

var stretchDescriptor = FontFace.stretch; FontFace.stretch = stretchDescriptor;

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/stretch

Property.

The stretch property of the `web.FontFace` interface retrieves
sets how the font stretches. It is equivalent to the `web.font-stretch`

`var stretchDescriptor = FontFace.stretch;
FontFace.stretch = stretchDescriptor;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/stretch`
sourceraw docstring

set-style!cljs

(set-style! this val)

Property.

The style property of the web.FontFace interface retrieves sets the font's style. It is equivalent to the web.font-style

var style = FontFace.style; FontFace.style = value;

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/style

Property.

The style property of the `web.FontFace` interface retrieves
sets the font's style. It is equivalent to the `web.font-style`

`var style = FontFace.style;
FontFace.style = value;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/style`
sourceraw docstring

set-unicode-range!cljs

(set-unicode-range! this val)

Property.

The unicodeRange property of the web.FontFace interface retrieves sets the range of unicode codepoints encompassing the font. It equivalent to the web.unicode-range descriptor.

var unicodeRangeDescriptor = FontFace.unicodeRange; FontFace.unicodeRange = unicodeRangeDescriptor;

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/unicodeRange

Property.

The unicodeRange property of the `web.FontFace` interface retrieves
sets the range of unicode codepoints encompassing the font. It
equivalent to the `web.unicode-range` descriptor.

`var unicodeRangeDescriptor = FontFace.unicodeRange;
FontFace.unicodeRange = unicodeRangeDescriptor;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/unicodeRange`
sourceraw docstring

set-variant!cljs

(set-variant! this val)

Property.

The variant property of the web.FontFace interface programatically or sets font variant values. It is equivalent to the web.font-variant

var variantSubProperty = FontFace.variant; FontFace.variant = variantSubProperty;

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/variant

Property.

The variant property of the `web.FontFace` interface programatically
or sets font variant values. It is equivalent to the `web.font-variant`

`var variantSubProperty = FontFace.variant;
FontFace.variant = variantSubProperty;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/variant`
sourceraw docstring

set-weight!cljs

(set-weight! this val)

Property.

The weight property of the web.FontFace interface retrieves sets the weight of the font. It is equivalent to the web.font-weight

var weightDescriptor = FontFace.weight; FontFace.weight = weightDescriptor;

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/weight

Property.

The weight property of the `web.FontFace` interface retrieves
sets the weight of the font. It is equivalent to the `web.font-weight`

`var weightDescriptor = FontFace.weight;
FontFace.weight = weightDescriptor;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/weight`
sourceraw docstring

statuscljs

(status this)

Property.

The status read-only property of the web.FontFace interface an enumerated value indicating the status of the font, one of "loading", "loaded", or "error".

var status = FontFace.status;

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/status

Property.

The status read-only property of the `web.FontFace` interface
an enumerated value indicating the status of the font, one of
\"loading\", \"loaded\", or \"error\".

`var status = FontFace.status;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/status`
sourceraw docstring

stretchcljs

(stretch this)

Property.

The stretch property of the web.FontFace interface retrieves sets how the font stretches. It is equivalent to the web.font-stretch

var stretchDescriptor = FontFace.stretch; FontFace.stretch = stretchDescriptor;

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/stretch

Property.

The stretch property of the `web.FontFace` interface retrieves
sets how the font stretches. It is equivalent to the `web.font-stretch`

`var stretchDescriptor = FontFace.stretch;
FontFace.stretch = stretchDescriptor;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/stretch`
sourceraw docstring

stylecljs

(style this)

Property.

The style property of the web.FontFace interface retrieves sets the font's style. It is equivalent to the web.font-style

var style = FontFace.style; FontFace.style = value;

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/style

Property.

The style property of the `web.FontFace` interface retrieves
sets the font's style. It is equivalent to the `web.font-style`

`var style = FontFace.style;
FontFace.style = value;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/style`
sourceraw docstring

unicode-rangecljs

(unicode-range this)

Property.

The unicodeRange property of the web.FontFace interface retrieves sets the range of unicode codepoints encompassing the font. It equivalent to the web.unicode-range descriptor.

var unicodeRangeDescriptor = FontFace.unicodeRange; FontFace.unicodeRange = unicodeRangeDescriptor;

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/unicodeRange

Property.

The unicodeRange property of the `web.FontFace` interface retrieves
sets the range of unicode codepoints encompassing the font. It
equivalent to the `web.unicode-range` descriptor.

`var unicodeRangeDescriptor = FontFace.unicodeRange;
FontFace.unicodeRange = unicodeRangeDescriptor;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/unicodeRange`
sourceraw docstring

variantcljs

(variant this)

Property.

The variant property of the web.FontFace interface programatically or sets font variant values. It is equivalent to the web.font-variant

var variantSubProperty = FontFace.variant; FontFace.variant = variantSubProperty;

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/variant

Property.

The variant property of the `web.FontFace` interface programatically
or sets font variant values. It is equivalent to the `web.font-variant`

`var variantSubProperty = FontFace.variant;
FontFace.variant = variantSubProperty;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/variant`
sourceraw docstring

weightcljs

(weight this)

Property.

The weight property of the web.FontFace interface retrieves sets the weight of the font. It is equivalent to the web.font-weight

var weightDescriptor = FontFace.weight; FontFace.weight = weightDescriptor;

See also: https://developer.mozilla.org/en-US/docs/Web/API/FontFace/weight

Property.

The weight property of the `web.FontFace` interface retrieves
sets the weight of the font. It is equivalent to the `web.font-weight`

`var weightDescriptor = FontFace.weight;
FontFace.weight = weightDescriptor;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/FontFace/weight`
sourceraw docstring

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

× close