[]发布为微信小游戏,加载字体失败
错误信息提示,简单demo见附件:(unknown) gameThirdScriptError
xml.getElementsByTagName is not a function
TypeError: xml.getElementsByTagName is not a function
at BitmapFont.__proto.parseFont (http://127.0.0.1:53804/game/code.js:803:17)
at Loader.__proto.onLoaded (http://127.0.0.1:53804/game/code.js:12700:11)
at HTMLImage.onload (http://127.0.0.1:53804/game/code.js:21213:15)
at Image._source._source.onload (http://127.0.0.1:53804/game/code.js:20175:11)
xml.getElementsByTagName is not a function
TypeError: xml.getElementsByTagName is not a function
at BitmapFont.__proto.parseFont (http://127.0.0.1:53804/game/code.js:803:17)
at Loader.__proto.onLoaded (http://127.0.0.1:53804/game/code.js:12700:11)
at HTMLImage.onload (http://127.0.0.1:53804/game/code.js:21213:15)
at Image._source._source.onload (http://127.0.0.1:53804/game/code.js:20175:11)
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
zh920627
赞同来自:
https://ask.layabox.com/question/10252
fnt字体也是ascii编码的