DesktopTextControl.FontUnit

From Xojo Documentation

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

New in 2021r3

Supported for all project types and targets.

The units in which FontSize is measured.

Notes

See the FontUnits enumeration for valid values.

Example

This example is in the Initialized event of the control. It sets the font unit to Pixel.

Me.FontUnit = FontUnits.Pixel