WebGraphics.TextFont

From Xojo Documentation

Property (As String )
aWebGraphics.TextFont = newStringValue
or
StringValue = aWebGraphics.TextFont

Supported for all project types and targets.

Name of the font used to draw text with WebGraphics.DrawString.

Notes

You can use any font supported by the web browser. For best results you will want to stick with the standard Web Safe Fonts.

Example

g.TextFont = "Arial"
g.DrawString("Hello World!", 10, 10)