mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Fix ttf loading issue
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user