FontFaceSet: size property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("CSS Font Loading API")}}{{AvailableInWorkers}}
The **size** read-only property of the {{domxref("FontFaceSet")}} interface returns the number of items in the FontFaceSet.
Value
An integer indicating the number of items in the FontFaceSet.
Examples
In the following example the size of the FontFaceSet is printed to the console.
js
console.log(document.fonts.size);Specifications
{{Specifications}}
Browser compatibility
{{Compat}}