FontFaceSet: size プロパティ

sizeFontFaceSet インターフェイスのプロパティで、 FontFaceSet に含まれるアイテムの数を返します。

FontFaceSet に含まれるアイテムの数を示す整数です。

次の例では、FontFaceSetsize がコンソールに表示されます。

js
console.log(document.fonts.size);

仕様書

No specification found

No specification data found for api.FontFaceSet.size.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

ブラウザーの互換性

BCD tables only load in the browser