qian 本地读取fnt文件,没有type,不会自动变为xml dom对象;如果是http加载,是有Content-Type自动加载为xml dom。
建议修复这个问题,laya.core.js,805行加上:
__proto.parseFont=function(xml,texture){
if (xml==null || texture==null)return;
this._texture=texture;
var tX=0;
var tScale=1;
+ if (typeof xml === "string") {
+ var parser = new DOMParser();
+ xml = parser.parser.parserFromString(xml,'text/xml');
+ }
var tInfo=xml.getElementsByTagName("info");
if (!tInfo[0].getAttributeNode){
return this.parseFont2(xml,texture);
}