Graphics.Font

From Xojo Documentation

Property (As Font )
aGraphics.Font = newFontValue
or
FontValue = aGraphics.Font

New in 2020r2

Supported on Mobile.

The font used for displaying text.

Sample Code

This in the Paint event draws text using a specific font:

g.Font = Font.BoldSystemFont
g.DrawText("Hello", 5, 20)