FontFaceSetLoadEvent: FontFaceSetLoadEvent() コンストラクター

FontFaceSetLoadEvent() コンストラクターは、 FontFaceSetLoadEvent オブジェクトを返します。これは FontFaceSet の読み込みのたびに発生します。

構文

js
new FontFaceSetLoadEvent(type)
new FontFaceSetLoadEvent(type, options)

引数

type

イベント名の文字列です。 大文字と小文字が区別され、ブラウザーは常に loadingloadingdoneloadingerror のいずれかに設定します。

options 省略可

オブジェクトで、Event() で定義されているプロパティに加え、以下のプロパティを持つことができます。

fontfaces 省略可

FontFace の配列です。既定値は空配列です。

返値

新しい FontFaceSetLoadEvent オブジェクトです。

仕様書

Specification
CSS Font Loading Module Level 3
# dom-fontfacesetloadevent-fontfacesetloadevent

ブラウザーの互換性

BCD tables only load in the browser