SetFontSmoothing

From SCAR Divi Manual
Jump to: navigation, search

Definition

procedure SetFontSmoothing(Enable: Boolean);

Source Code

procedure SetFontSmoothing(Enable: Boolean);
begin
  SystemParametersInfo(SPI_SETFONTSMOOTHING, Integer(Enable), nil, SPIF_SENDWININICHANGE);
end;

Availability

SCAR Divi 3.00 > Current

Description

Enables font smoothing on the system if the given boolean Enable is set to true, if it is false, it disables font smoothing.

Example

var
  b: Boolean;

begin
  b := IsFontSmoothingEnabled;
  SetFontSmoothing(not b);
  Wait(5000);
  SetFontSmoothing(b);
end.

See Also