最新官方文档太老了
http://developer.egret.com/cn/github/egret-docs/Engine2D/textField/textStyle/index.html
还在使用egret.registerFontMapping(),这个API早就不支持了。
官方论坛上也有多个帖子在询问
https://bbs.egret.com/forum.php?mod=viewthread&tid=54983&highlight=%E5%AD%97%E4%BD%93
https://bbs.egret.com/forum.php?mod=viewthread&tid=52751&highlight=%E5%AD%97%E4%BD%93
经过多次来回试验,终于找到可行的解决方案。在下列版本上,用小米,锤子,oppo的多款手机测试通过
引擎版本: 5.2.16 ~5.2.20(当前最新版本)
native android版本: 0.1.16和0.1.17(当前最新版本)
先概括一下:在web和native两个平台上,支持外部字体的方法不同。