CSS Font Loading API

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The CSS Font Loading API provides events and interfaces for dynamically loading font resources.

Note: This feature is available in Web Workers (self.fonts provides access to FontFaceSet).

Interfaces

FontFace

Represents a single usable font face.

FontFaceSet

An interface loading font faces and checking their download statuses.

FontFaceSource

A mixin providing all of the fonts used in font-related operations, unless defined otherwise. It defines the FontFaceSources.fonts property available to Document and WorkerGlobalScope.

FontFaceSetLoadEvent

Fired whenever a FontFaceSet loads.

Specifications

Specification
CSS Font Loading Module Level 3 (CSS Font Loading 3)
# fontface-interface

Browser compatibility

FontFace interface

BCD tables only load in the browser