Merged revision(s) 55665 #81635180d3 from trunk:

LCL: GTK2: Fixed font issues at high-DPI on Gtk2. Issue #32268
........

git-svn-id: branches/fixes_1_8@55738 -
This commit is contained in:
maxim 2017-08-23 22:14:39 +00:00
parent 8c4eda4980
commit 96a4ba8f7c

View File

@ -5206,7 +5206,7 @@ begin
if not pango_font_description_get_size_is_absolute(PangoDesc) or (AFontSize >= PANGO_SCALE) then
AFontSize := AFontSize div PANGO_SCALE;
PLogfont(Buf)^.lfHeight := MulDiv(AFontSize, GetDeviceCaps(0, LOGPIXELSX) , 72);
PLogfont(Buf)^.lfHeight := MulDiv(AFontSize, Screen.PixelsPerInch, 72);
end;
end;
end else