mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-01 05:29:18 +02:00
parent
759c61f5e1
commit
832b61143a
@ -3112,7 +3112,6 @@ var
|
|||||||
ALogBrush: PLogBrush absolute Buf;
|
ALogBrush: PLogBrush absolute Buf;
|
||||||
Dashes: TQRealArray;
|
Dashes: TQRealArray;
|
||||||
i: integer;
|
i: integer;
|
||||||
PaintDevice: QPaintDeviceH;
|
|
||||||
{$ifdef VerboseQtWinAPI}
|
{$ifdef VerboseQtWinAPI}
|
||||||
ObjType: string;
|
ObjType: string;
|
||||||
{$endif}
|
{$endif}
|
||||||
@ -3149,13 +3148,8 @@ begin
|
|||||||
|
|
||||||
FillChar(ALogFont^, SizeOf(ALogFont^), 0);
|
FillChar(ALogFont^, SizeOf(ALogFont^), 0);
|
||||||
if AFont.getPixelSize = -1 then
|
if AFont.getPixelSize = -1 then
|
||||||
begin
|
ALogFont^.lfHeight := MulDiv(AFont.getPointSize, Screen.PixelsPerInch, 72)
|
||||||
PaintDevice := nil; // QWidget_to_QPaintDevice(QApplication_desktop);
|
else
|
||||||
if PaintDevice <> nil then
|
|
||||||
ALogFont^.lfHeight := MulDiv(AFont.getPointSize, QPaintDevice_logicalDpiX(PaintDevice), 72)
|
|
||||||
else
|
|
||||||
ALogFont^.lfHeight := AFont.getPointSize;
|
|
||||||
end else
|
|
||||||
ALogFont^.lfHeight := AFont.getPixelSize;
|
ALogFont^.lfHeight := AFont.getPixelSize;
|
||||||
ALogFont^.lfEscapement := AFont.Angle;
|
ALogFont^.lfEscapement := AFont.Angle;
|
||||||
ALogFont^.lfWeight := ConvertFontWeightToQtConst(AFont.getWeight);
|
ALogFont^.lfWeight := ConvertFontWeightToQtConst(AFont.getWeight);
|
||||||
|
Loading…
Reference in New Issue
Block a user