CSS font loading
The CSS font loading module describes events and interfaces used for dynamically loading font resources.
Reference
>Interfaces
fontFaceinterfaceFontFace()constructorfontFace.familypropertyfontFace.stylepropertyfontFace.weightpropertyfontFace.stretchpropertyfontFace.unicodeRangepropertyfontFace.variantpropertyfontFace.featureSettingspropertyfontFace.variationSettingspropertyfontFace.displaypropertyfontFace.ascentOverridepropertyfontFace.descentOverridepropertyfontFace.lineGapOverridepropertyfontFace.load()method (returns a promise)
fontFaceSetinterfacefontFaceSetLoadEventevent
Guides
- CSS font loading API
-
Overview of the CSS Font Loading API, which provide events and interfaces for dynamically loading font resources.
Related concepts
- CSS
@font-faceat-rule - CSS
@font-feature-valuesat-rule CSSFontFaceRuleinterface- Document
fontsproperty (returns theFontFaceSetobject instance) - WorkerGlobalScope
fontsproperty (returns theFontFaceSetobject instance) - JavaScript
Promiseobject
Specifications
| Specification |
|---|
| CSS Font Loading Module Level 3> |
See also
- CSS fonts module