Label.FontUnit

From Xojo Documentation

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

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