v150 · CSS Fonts · WebIDL

Dynamic Font Loader

Add, inspect, and remove FontFace objects from document.fonts programmatically. The table reflects the live state of the FontFaceSet, using the Set-like interface methods and the FontFaceSet.ready promise. Chrome 150 makes instanceof FontFaceSet work because window.FontFaceSet is now exposed.

Add a font to document.fonts
Fonts in document.fonts (document.fonts.size = 0)
family
weight
style
status
action
No fonts added yet — fonts added here will appear in this table
// Ready. document.fonts.size =

see also

implementation reference

Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗