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.
FontFace
FontFaceSet
FontFaceSource
FontFaceSources.fonts
property available to Document
and WorkerGlobalScope
.FontFaceSetLoadEvent
FontFaceSet
loads.Specification | Status | Comment |
---|---|---|
CSS Font Loading Module Level 3 | Working Draft | Initial definition. |
FontFace
interfaceDesktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 35 | ? | 41 | ? | ? | ? |
FontFace() constructor
|
35 | ? | 41 | ? | ? | ? |
display
|
60 | ? | No | ? | 47 | No |
family
|
Yes | ? | ? | ? | Yes | ? |
style
|
? | ? | ? | ? | ? | ? |
weight
|
? | ? | ? | ? | ? | ? |
stretch
|
? | ? | ? | ? | ? | ? |
unicodeRange
|
? | ? | ? | ? | ? | ? |
variant
|
? | ? | ? | ? | ? | ? |
featureSettings
|
? | ? | ? | ? | ? | ? |
status
|
? | ? | ? | ? | ? | ? |
loaded
|
? | ? | ? | ? | ? | ? |
load
|
? | ? | ? | ? | ? | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | 37 | 35 | ? | 41 | ? | ? | ? |
FontFace() constructor
|
37 | 35 | ? | 41 | ? | ? | ? |
display
|
60 | 60 | ? | No | 47 | No | ? |
family
|
Yes | Yes | ? | ? | Yes | ? | ? |
style
|
? | ? | ? | ? | ? | ? | ? |
weight
|
? | ? | ? | ? | ? | ? | ? |
stretch
|
? | ? | ? | ? | ? | ? | ? |
unicodeRange
|
? | ? | ? | ? | ? | ? | ? |
variant
|
? | ? | ? | ? | ? | ? | ? |
featureSettings
|
? | ? | ? | ? | ? | ? | ? |
status
|
? | ? | ? | ? | ? | ? | ? |
loaded
|
? | ? | ? | ? | ? | ? | ? |
load
|
? | ? | ? | ? | ? | ? | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/CSS_Font_Loading_API