[LayaAir 2.0]微信开发者工具iOS模拟器报错:CharRender_Canvas.ctx.fillAndStrokeText is not a function

使用LayaAir 2.0,游戏在微信开发者工具Android模拟器可以正常运行,在iOS模拟器出现以下报错:
 CharRender_Canvas.ctx.fillAndStrokeText is not a function
TypeError: CharRender_Canvas.ctx.fillAndStrokeText is not a function
    at CharRender_Canvas.__proto.getCharCanvas (http://127.0.0.1:18647/game/li ... 935:26)
    at CharRender_Canvas.__proto.getCharBmp (http://127.0.0.1:18647/game/li ... 882:16)
    at CharPages.__proto.getCharBmp (http://127.0.0.1:18647/game/li ... 819:31)
    at CharPages.__proto.getChar (http://127.0.0.1:18647/game/li ... 723:16)
    at CharBook.__proto._fast_filltext (http://127.0.0.1:18647/game/li ... 220:22)
    at CharBook.__proto.filltext (http://127.0.0.1:18647/game/li ... 7290:8)
    at WebGLContext2D.__proto._fillText (http://127.0.0.1:18647/game/li ... 374:29)
    at WebGLContext2D.__proto._fillBorderText (http://127.0.0.1:18647/game/li ... 1429:8)
    at WebGLContext2D.__proto.fillBorderText (http://127.0.0.1:18647/game/li ... 1425:8)
    at FillBorderTextCmd.__proto.run (http://127.0.0.1:18647/game/li ... 515:11)
已邀请:

Aar0n

赞同来自:

传一个可复现的demo,我们没有出现这个问题。

流年似水

赞同来自:

我出现同样的问题

HAO

赞同来自:

fillAndStrokeText这个api找不到,改成strokeText可以

要回复问题请先

商务合作
商务合作