DesktopLabel.FontUnit

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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