From Xojo Documentation

Property (As Single )
aTextEdit.FontSize = newSingleValue
SingleValue = aTextEdit.FontSize

New in 2019r2

Supported for all project types and targets.

Point size of the font used to display text content of a Control.


If you enter zero as the FontSize, your app will use the font size that works best for the platform on which it is running.

Sample Code

This code sets the font size to 16 points.

Me.FontSize = 16