灰色的部分是canvas,里面的A
外面的A
为什么大小不一样
canvas里的字体字号应该怎么填?How to fill in the font size in canvas?
canvas里的字体字号应该怎么填?灰色的部分是canvas,里面的A
外面的A
为什么大小不一样
The gray part is canvas. Why is the size of a on the inside different from that on the outside
回答:
ctx.setFontSize(12);
弄一个 [ 能复现问题的简单的 ] 代码片段
https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
原文出处:canvas里的字体字号应该怎么填?
记得现在canvas不支持设置字体的吧?