Issue #1503: Leave font size at default, as the system's font size is probably scaled up

This commit is contained in:
Ansgar Becker
2021-12-26 14:15:09 +01:00
parent 142e26ec22
commit bcfcbff5bc

View File

@@ -134,7 +134,8 @@ begin
// Apply system font. See issue #3204.
// Code taken from http://www.gerixsoft.com/blog/delphi/system-font
if SystemParametersInfo(SPI_GETICONTITLELOGFONT, SizeOf(TLogFont), @LogFont, 0) then begin
AFont.Height := LogFont.lfHeight;
// Leave font size at default, as the system's font size is probably scaled up
//AFont.Height := LogFont.lfHeight;
AFont.Orientation := LogFont.lfOrientation;
AFont.Charset := TFontCharset(LogFont.lfCharSet);
AFont.Name := PChar(@LogFont.lfFaceName);