- 当前 Bug 的表现(可附上截图)
开发者工具表现:
真机表现:
- 预期表现
想要测试数据2不加粗,但是真机表现是加粗的,以第一次设置的为准了
简易代码:
<canvas canvas-id=‘shareCanvas’>
const shareCanvas = wx.createCanvasContext(“shareCanvas”);
const showMessage = ‘测试数据1’
const desMessage = ‘测试数据2’
shareCanvas.font = ‘normal bold 23px sans-serif’
shareCanvas.fillText(showMessage, 0, 25)
shareCanvas.draw()
shareCanvas.font = ‘normal normal 19px sans-serif’
shareCanvas.fillText(desMessage, 0, 65)
shareCanvas.draw(true)
麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)