From aee8d9c0454c254af8a5945f69101018138a0503 Mon Sep 17 00:00:00 2001 From: Knox Date: Mon, 16 Jul 2018 15:13:11 +0800 Subject: [PATCH] fix load ttf error in md5 for fireball/issues/7896 (#2982) --- cocos2d/core/label/CCTextUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2d/core/label/CCTextUtils.js b/cocos2d/core/label/CCTextUtils.js index 5dd2c2cdb0..dea5b7d331 100644 --- a/cocos2d/core/label/CCTextUtils.js +++ b/cocos2d/core/label/CCTextUtils.js @@ -60,7 +60,7 @@ var CustomFontLoader = { var md5Pipe = cc.loader.md5Pipe; if (md5Pipe) { - url = md5Pipe.transformURL(url); + url = md5Pipe.transformURL(url, true); } //these platforms support window.FontFace, but it sucks sometimes. var useFontFace = (cc.sys.browserType !== cc.sys.BROWSER_TYPE_BAIDU