# CanvasContext.fillText(string text, number x, number and number maxWidth)

with Promise style call: Not supported

Mini Program plugin: Support

Draws filled text on canvas

# parameter

# string text

Text output on canvas

# number x

Draw the upper-left corner of the text x Coordinate position

# number and

Draw the upper-left corner of the text and Coordinate position

# number maxWidth

Maximum width to draw, optional

# sample code

const ctx = wx.createCanvasContext('myCanvas')

ctx.setFontSize(20)
ctx.fillText('Hello', 20, 20)
ctx.fillText('MINA', 100, 100)

ctx.draw()