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:
jesus 2011-11-10 18:08:19 +00:00
parent 9bb061ab29
commit e509d48543

View File

@ -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]);