mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
lcl: formatting
git-svn-id: trunk@20008 -
This commit is contained in:
parent
fd3a03f494
commit
fd36716c15
@ -490,7 +490,7 @@ type
|
||||
FReference: TWSFontReference;
|
||||
procedure FreeReference;
|
||||
function GetCanUTF8: boolean;
|
||||
function GetHandle: HFONT;
|
||||
function GetHandle: HFONT;
|
||||
procedure GetData(var FontData: TFontData);
|
||||
function GetIsMonoSpace: boolean;
|
||||
function GetReference: TWSFontReference;
|
||||
@ -500,13 +500,13 @@ type
|
||||
procedure SetHandle(const Value: HFONT);
|
||||
procedure ReferenceNeeded;
|
||||
protected
|
||||
function GetCharSet: TFontCharSet;
|
||||
function GetHeight: Integer;
|
||||
function GetName: string;
|
||||
function GetOrientation: Integer;
|
||||
function GetPitch: TFontPitch;
|
||||
function GetSize: Integer;
|
||||
function GetStyle: TFontStyles;
|
||||
function GetCharSet: TFontCharSet;
|
||||
function GetHeight: Integer;
|
||||
function GetName: string;
|
||||
function GetOrientation: Integer;
|
||||
function GetPitch: TFontPitch;
|
||||
function GetSize: Integer;
|
||||
function GetStyle: TFontStyles;
|
||||
procedure Changed; override;
|
||||
procedure DoAllocateResources; override;
|
||||
procedure DoCopyProps(From: TFPCanvasHelper); override;
|
||||
|
@ -837,11 +837,11 @@ end;
|
||||
------------------------------------------------------------------------------}
|
||||
procedure TFont.SetHeight(Value: Integer);
|
||||
begin
|
||||
if FHeight = Value then exit;
|
||||
if FHeight = Value then Exit;
|
||||
// set Size first. This will set FHeight to a rounded equivalent
|
||||
Size := -MulDiv(Value, 72, FPixelsPerInch);
|
||||
// store the real FHeight
|
||||
FHeight:=Value;
|
||||
FHeight := Value;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user