Files
cocos4/platforms/native/builtin/jsb-adapter/FontFace.js
T
PP e3e1db619f move port/native into platforms/native (#7963)
* Revert "move in port/native to platforms/native (#7962)"

This reverts commit 96871ba26b.

* move port/native into platforms/native
2020-12-15 12:43:16 +08:00

29 lines
582 B
JavaScript

class FontFace {
constructor(family, source, descriptors) {
this.family = family
this.source = source
this.descriptors = descriptors
this._status = 'unloaded'
this._loaded = new Promise((resolve, reject) => {
this._resolveCB = resolve
this._rejectCB = reject
})
}
load() {
// class FontFaceSet, add(fontFace) have done the load work
}
get status() {
return this._status;
}
get loaded() {
return this._loaded;
}
}
module.exports = FontFace;