WebGraphics.FontName

From Xojo Documentation

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

New in 2020r1

Supported for all project types and targets.

Name of the font used to draw text with the DrawText method.

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.FontName = "Arial"
g.DrawText("Hello World!", 10, 10)