CSS font loading
The CSS font loading module describes events and interfaces used for dynamically loading font resources.
Reference
Interfaces
fontFace
interfaceFontFace()
constructorfontFace.family
propertyfontFace.style
propertyfontFace.weight
propertyfontFace.stretch
propertyfontFace.unicodeRange
propertyfontFace.variant
propertyfontFace.featureSettings
propertyfontFace.variationSettings
propertyfontFace.display
propertyfontFace.ascentOverride
propertyfontFace.descentOverride
propertyfontFace.lineGapOverride
propertyfontFace.load()
method (returns a promise)
fontFaceSet
interfacefontFaceSetLoadEvent
event
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-face
at-rule - CSS
@font-feature-values
at-rule CSSFontFaceRule
interface- Document
fonts
property (returns theFontFaceSet
object instance) - WorkerGlobalScope
fonts
property (returns theFontFaceSet
object instance) - JavaScript
Promise
object
Specifications
Specification |
---|
CSS Font Loading Module Level 3 |
See also
- CSS fonts module