mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
e3e1db619f
* Revert "move in port/native to platforms/native (#7962)"
This reverts commit 96871ba26b.
* move port/native into platforms/native
29 lines
582 B
JavaScript
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;
|