Label.TextUnit

From Xojo Documentation

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

New in 2009r4

Supported for all project types and targets.

The units in which TextSize is measured.

Notes

The options are:

Class Constant
Default
Inches
Millimeter
Pixel
Point

Example

This example sets the text to 16 point Futura.

Me.TextFont = "Futura"
Me.TextUnit = FontUnits.Point
Me.TextSize = 16