---
title: FontFaceSet.size
slug: Web/API/FontFaceSet/size
tags:
  - API
  - Property
  - Reference
  - size
  - FontFaceSet
browser-compat: api.FontFaceSet.size
---
{{APIRef("CSS Font Loading API")}}

The **`size`** 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}}

