mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 17:42:41 +08:00
Merge pull request #2536 from CocosAss/v1.9-release
Wechat devTools add new warn concern about TTF supported
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user