Difference between revisions of "IsFontSmoothingEnabled"

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

Latest revision as of 21:56, 27 June 2011

Definition

function IsFontSmoothingEnabled: Boolean;

Source Code

function IsFontSmoothingEnabled: Boolean;
var
  i: Integer;
begin
  SystemParametersInfo(SPI_GETFONTSMOOTHING, 0, @i, 0);
  Result := Boolean(i);
end;

Availability

SCAR Divi 3.00 > Current

Description

Returns true if font smoothing is enabled. It is advised to turn off font smoothing when using ocr functions.

Example

var
  b: Boolean;

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

See Also