IsFontSmoothingEnabled

From SCAR Divi Manual
Revision as of 22:56, 27 June 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function IsFontSmoothingEnabled: Boolean; </source> ===Source Code=== <source lang="scar"> function IsFontSmoothingEnabled: Boo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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