1👍
✅
As far as I know, there’s no fontSize
property on the canvas rendering context. You should use its font
property instead to specify weight, size, and family of the font.
Please take a look at the runnable code snippet provided in this answer.
Source:stackexchange.com