Font.Constructor(postscriptName As String, pointSize As Double)

From Xojo Documentation

Constructor

Font.Constructor(postscriptName As String, pointSize As Double)

New in 2020r2

Returns a Font object for the font name passed at the size passed.

Sample Code

Get a Font object for the Helvetica font at 12 point size:

Var helvetica12 As New Font("Helvetica", 12)