[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Controls' (#lcl)

# TControl.DesktopFont

Indicates if the desktop (system) font is used for the text displayed on this control.

## Declaration

Source position: controls.pp line 1569

`protected property TControl.DesktopFont : Boolean read FDesktopFont write SetDesktopFont;`

## Description

DesktopFont is a Boolean property which indicates whether the default desktop (or system) font is used to display the text on the control. The default value for the property is set to True in the Create constructor, and indicates that an explicit assignment has not been made to the Font property. When set to True, the System font in Screen is loaded into the Font property.

Changing the property value causes a CM_SYSFONTCHANGED message to be performed for the control. DesktopFont is set to False when an explicit TFont value is assigned to the Font property.

## See also

TControl.Perform |  | Calls a message handler directly, bypassing the message queue.
TControl.CMSysFontChanged |  | Handles the CM_SYSFONTCHANGED message for the control.
TScreen.SystemFont |  | The default font used for system task dialogs and controls like TSpeedButton.
Screen |  | The TScreen singleton for the application.