# CanvasContext.setFontSize(number fontSize)
From base library 1.9.90 Start, this interface stops maintenance, please use CanvasContext.font replace
with Promise style call: Not supported
Mini Program plugin: Support
Set font size
# parameter
# number fontSize
Font size
# sample code
const ctx = wx.createCanvasContext('myCanvas')
ctx.setFontSize(20)
ctx.fillText('20', 20, 20)
ctx.setFontSize(30)
ctx.fillText('30', 40, 40)
ctx.setFontSize(40)
ctx.fillText('40', 60, 60)
ctx.setFontSize(50)
ctx.fillText('50', 90, 90)
ctx.draw()