fix load ttf error in md5 for fireball/issues/7896 (#2982)

This commit is contained in:
Knox
2018-07-16 15:13:11 +08:00
committed by pandamicro
parent 4180152cdf
commit 498bb67365
+1 -1
View File
@@ -62,7 +62,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