WebGraphics.DrawString
From Xojo Documentation
Method
WebGraphics.DrawString(text As String, x As Integer, y As Integer [,width As Integer ])
Supported for all project types and targets.
Supported for all project types and targets.
Draws the text at the specified location and in the current color (specified by ForeColor).
Notes
The x parameter specifies the distance from the left of the WebGraphics object in pixels. The y parameter specifies the baseline for the text. The optional width parameter specifies the width (in pixels) at which text should wrap. If width is omitted, then text will print on one line, even if the drawing area is too narrow to contain the text.
Example
This example draws text in red Helvetica 16-point.
g.ForeColor = &cff0000
g.TextFont = "Helvetica"
g.TextSize = 16
g.DrawString("Hello world!", 10, 130)
g.TextFont = "Helvetica"
g.TextSize = 16
g.DrawString("Hello world!", 10, 130)