mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Use system font if no font found and not using system font
This commit is contained in:
@@ -479,6 +479,11 @@ var Label = cc.Class({
|
||||
onEnable () {
|
||||
this._super();
|
||||
|
||||
// TODO: Hack for barbarians
|
||||
if (!this.font && !this._isSystemFontUsed) {
|
||||
this.useSystemFont = true;
|
||||
}
|
||||
|
||||
this._updateAssembler();
|
||||
this._activateMaterial();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user