mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-19 22:49:30 +02:00
LazReport, use fixed dpi as reference as before of r33161 #fe37a790e6 because of regressions, issue #20649
git-svn-id: trunk@33462 -
This commit is contained in:
parent
9bb061ab29
commit
e509d48543
@ -2486,7 +2486,7 @@ begin
|
||||
aCanvas.Font.Name := 'default';
|
||||
//Font := Self.Font;
|
||||
if not IsPrinting and (ScaleY<>0) then
|
||||
ACanvas.Font.Height := -Round(Self.Font.Size * ACanvas.Font.PixelsPerInch / 72 * ScaleY);
|
||||
ACanvas.Font.Height := -Round(Self.Font.Size * 96 / 72 * ScaleY);
|
||||
{$IFDEF DebugLR}
|
||||
DebugLnExit('AssignFont (%s) DONE: Self.Font.Size=%d aCanvas.Font.Size=%d',
|
||||
[self.Font.Name,Self.Font.Size,ACanvas.Font.Size]);
|
||||
|
Loading…
Reference in New Issue
Block a user