← Back to release summary

CSS Font Loading API - FontFaceSet: check() method

Category
CSS
Type
No developer-visible change
Status
Enabled by default (Chrome 120)
Intent stage
None

Summary

The FontFaceSet's check() function verifies whether it's possible to display text using the specified fonts without attempting to utilize fonts in the FontFaceSet that have not completed loading. This allows users to safely employ the font without later triggering a font replacement (i.e., font swap).

Standards & signals

View on chromestatus.com