[Lazarus] Mac users: High-DPI

Ondrej Pokorny lazarus at kluug.net
Thu Mar 9 23:01:27 CET 2017

On 09.03.2017 21:37, Alexey via Lazarus wrote:
> On 09.03.2017 21:58, Ondrej Pokorny via Lazarus wrote:
>>> can you tell why the Mac font becomes bigger?
>> Because Font: Height := -MulDiv(Size, *PixelsPerInch*, 72);
> If you change 72 here too to 96, it will be okay?

Yes, it would behave like before r53712.

But actually I now tested the font problem on Mac:

Lazarus 1.6: Font.Size=8 (or any other value) results in different 
visual font height on Windows and Mac.
Lazarus trunk: Font.Size=8 (or any other value) is the same height on 
Windows and Mac.

To me it looks like the change of DPI from 72 to 96 fixed the font size 
problems and made texts look the same. Obviously, when updating from 1.6 
to 1.7 (1.8) people on Mac will have to adjust custom (nonzero) font sizes.

I.e. it looks like no change is required. I will only leave a note about 
it in release information.

If you experience something else and you think I am wrong, please write 
about it. My testing chances on Mac are limited. I'd like to have the 
DPI-Scaling as good as possible for 1.8 RC1.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170309/9b17ede3/attachment.html>

More information about the Lazarus mailing list