Label.FontUnit

From Xojo Documentation

Property (As FontUnits )
aLabel.FontUnit = newFontUnitsValue
or
FontUnitsValue = aLabel.FontUnit

New in 2019r2

Supported for all project types and targets.

The units in which FontSize is measured.


Example

This example sets the text to 16 point Futura.

Me.FontName = "Futura"
Me.FontUnit = FontUnits.Point
Me.FontSize = 16