SetFontSmoothing

From SCAR Divi Manual
Revision as of 22:58, 27 June 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> procedure SetFontSmoothing(Enable: Boolean); </source> ===Source Code=== <source lang="scar"> procedure SetFontSmoothing(Enable...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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