草案
此页面不完整。
这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
load()
方法在
FontFace
interface loads a font based on current object's constructor-passed requirements, including a location or source buffer, and returns a
Promise
that resolves with the current FontFace object.
var promise = FontFace.load();
None.
A
Promise
that resolves with a reference to the current
FontFace
object when the font loads or rejects with a
NetworkError
if the loading process fails.
Indicates that the attempt to load the font failed.
| 规范 | 状态 | 注释 |
|---|---|---|
|
CSS Font Loading Module Level 3
在该规范中的 load 定义。 |
工作草案 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
load
|
Chrome
45
|
Edge 79 | Firefox Yes | IE ? | Opera Yes | Safari 10 |
WebView Android
45
|
Chrome Android
45
|
Firefox Android Yes | Opera Android Yes | Safari iOS Yes |
Samsung Internet Android
5.0
|
完整支持
兼容性未知
实验。期望将来行为有所改变。
见实现注意事项。
FontFace
load