From 0889e7e8df400cc97551b82f442536d18f2ed2ef Mon Sep 17 00:00:00 2001 From: pandamicro Date: Fri, 20 Apr 2018 00:45:37 +0800 Subject: [PATCH] Use system font if no font found and not using system font --- cocos2d/core/components/CCLabel.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cocos2d/core/components/CCLabel.js b/cocos2d/core/components/CCLabel.js index 0e05779867..a6e42280ea 100644 --- a/cocos2d/core/components/CCLabel.js +++ b/cocos2d/core/components/CCLabel.js @@ -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(); },