Use system font if no font found and not using system font

This commit is contained in:
pandamicro
2018-04-20 00:45:37 +08:00
parent ef97c6fa2b
commit 0889e7e8df
+5
View File
@@ -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();
},