canvas.font=value,设置无效?

发布于 8 年前作者 qianyan14712 次浏览最后编辑 8 年前来自 issues

ctx.setFontSize(‘12’)

ctx.setFillStyle(“#fff”)

ctx.font = ‘text-decoration:line-through normal 12px 宋体’;

ctx.fillText(‘¥8488’, 80, 280)  

ctx.font  为什么这个不起作用啊

2 回复
xcui
xcui1 楼6 年前

这个是不支持的

xiulan66
xiulan662 楼6 年前

我 一定要 在 canvas 设置 里面的文字 text-decoration:line-through  一定要有这个样式