We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 888c979 commit d6930a0Copy full SHA for d6930a0
extensions/cocostudio/loader/parsers/timelineParser-2.x.js
@@ -547,7 +547,7 @@
547
if (cc.sys.isNative) {
548
fontName = cc.path.join(cc.loader.resPath, resourcePath, path);
549
} else {
550
- fontName = path.match(/([^\/]+)\.ttf/);
+ fontName = path.match(/([^\/]+)\.(\S+)/);
551
fontName = fontName ? fontName[1] : "";
552
}
553
widget.setFontName(fontName);
@@ -1106,7 +1106,7 @@
1106
1107
1108
1109
1110
1111
1112
0 commit comments