canvas里的字体字号应该怎么填?

小程序 文章 2020-08-28 18:21 581 0 全屏看文

AI助手支持GPT4.0

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

回答:

A德佑-黄勇¹³³³³⁰⁶⁵³⁸¹:

记得现在canvas不支持设置字体的吧?

王志鹏:

ctx.setFontSize(12);


O__O"…:那个不能用
微喵网络:

弄一个 [ 能复现问题的简单的 ] 代码片段

https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

-EOF-

AI助手支持GPT4.0