May 19, 2021 WeChat Mini Program Development Document
Base library 1.9.90 starts to support, and low versions need to be compatible
The method of drawing a text stroke at a given (x, y) position
canvasContext.strokeText(text, x, y, maxWidth)
The property value | Type | Description |
---|---|---|
text | String | The text to draw |
Ⅹ | Number | The x-axis coordinates of the starting point of the text |
Y | Number | The y-axis coordinates of the starting point of the text |
maxWidth | Number | The maximum width that needs to be drawn is optional |