此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

FontFace:loaded 属性

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年1月.

备注: 此特性在 Web Worker 中可用。

FontFace 接口的 loaded 只读属性返回一个 Promise,当该对象构造函数中指定的字体完成加载时,该 promise 将兑现为当前 FontFace 对象;如果加载失败,则该 promise 将以 SyntaxError 拒绝。

一个 Promise,其将兑现为当前 FontFace 对象。

规范

Specification
CSS Font Loading Module Level 3
# dom-fontface-loaded

浏览器兼容性