A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/size below:

FontFaceSet: size property - Web APIs

MDN Web Docs
  1. Web
  2. Web APIs
  3. FontFaceSet
  4. size

Filter sidebar

In this article
  1. CSS Font Loading API
  2. FontFaceSet
  3. Instance properties
    1. ready
    2. size
    3. status
  4. Instance methods
    1. add()
    2. check()
    3. clear()
    4. delete()
    5. entries()
    6. forEach()
    7. has()
    8. keys()
    9. load()
    10. values()
  5. Events
    1. loading
    2. loadingdone
    3. loadingerror
  6. Inheritance
    1. EventTarget
  7. Related pages for CSS Font Loading API
    1. Document.fonts
    2. FontFace
    3. FontFaceSetLoadEvent
    4. WorkerGlobalScope.fonts
In this article FontFaceSet: size property

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.

Note: This feature is available in Web Workers.

The size property of the 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 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.

Browser compatibility Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Oct 8, 2024 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4