Difference between revisions of "SetFontSmoothing"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> procedure SetFontSmoothing(Enable: Boolean); </source> ===Source Code=== <source lang="scar"> procedure SetFontSmoothing(Enable...")
 
(No difference)

Latest revision as of 21:58, 27 June 2011

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