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

# TFont.SetDefault

Sets font properties to their default values.

## Declaration

Source position: graphics.pp line 571

`public procedure TFont.SetDefault;`

## Description

SetDefault is a procedure used to set properties in the font to the values used in the DefFontData variable. SetDefault calls BeginUpdate to start an update process, and sets the values for the following properties:

- Name
- Charset
- Height
- Pitch
- Quality
- Style
- Color

Color is set to clDefault when the UseCLDefault compiler directive is defined. Otherwise, the value clWindowText is used in the property.

EndUpdate is called to finish the update process prior to exiting from the method.

## See also

DefFontData |  | Default font data used for new TFont instances.
TFont.BeginUpdate |  | Starts an update process for the class instance.
TFont.EndUpdate |  | Finishes an update process for the class instance.