Label.TextFont

From Xojo Documentation

Revision as of 03:19, 11 June 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Property (As String )
aLabel.TextFont = newStringValue
or
StringValue = aLabel.TextFont

Supported for all project types and targets.

Name of the font used to display the caption or text content.

Notes

You can enter any font that is installed on the computer or the names of the two metafonts, “System” and “SmallSystem”.

The System font is the font used by the system software as its default font. Different operating systems use different default fonts. If the system software supports both a large and small System font, you can also specify the “SmallSystem” font as your TextFont.

On Macintosh, “SmallSystem” specifies the OS’s smaller system font. On Windows and Linux, “SmallSystem” is the same as “System”.

Example

This example sets the font to Futura.

Me.TextFont = "Futura"