From Xojo Documentation
| This item was deprecated in version 2019r2.
Please use TextEdit.FontUnit as a replacement.
Property (As FontUnits )
The units in which TextSize is measured.
The options are: The FontUnits enum has the following values:
|0||Default||An appropriate cross-platform selection. On Macintosh, font units is in points, on Windows it is in pixel size, and on Linux it is a scale Point size. This is a legacy carry-over from the days where the TextSize of 12 was the default and 12 was assumed to be the standard font size on each platform.|
|1||Pixel||Units are pixels.|
|2||Point||Units are points.|
|3||Inches||Units are inches.|
|4||Millimeter||Units are millimeters.|
This example is in the Open event of the control. It sets the font unit to Pixel.
Me.TextUnit = FontUnits.Pixel