DesktopLabel.FontUnit

From Xojo Documentation

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

New in 2021r3

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