From 6196456e227c7c24ab0742649c10b0a3828e3ca7 Mon Sep 17 00:00:00 2001 From: Cocos Ass Date: Fri, 13 Apr 2018 19:47:47 +0800 Subject: [PATCH] Wechat devTools add new warn concern about TTF supported --- cocos2d/core/label/CCSGLabel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/cocos2d/core/label/CCSGLabel.js b/cocos2d/core/label/CCSGLabel.js index 1b30b0e43d..019624a829 100644 --- a/cocos2d/core/label/CCSGLabel.js +++ b/cocos2d/core/label/CCSGLabel.js @@ -501,6 +501,7 @@ _ccsg.Label = _ccsg.Node.extend({ //avoid the error in wechat devtool platform if (!fontFamilyName) { fontFamilyName = cc.CustomFontLoader._getFontFamily(fontHandle); + cc.warn("TTF font is not supported on debugger, but it will be displayed correctly on mobile device."); } callback(); } else {