Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

Welcome, Guest
Guest Settings

Thread: Wrong (double) font scaling for DPI

Permlink Replies: 0
Gabriel Corneanu

Posts: 17
Registered: 11/9/99
Wrong (double) font scaling for DPI
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 15, 2017 5:51 AM

I reported it here:
But given my perceived importance, I try to bring it here in attention.

All the code which is trying to scale controls (including forms) for current dpi is wrongly scaling the Font !!!
Look through forms.pas and controls.pas, search for "Font.Height".
The same in menus.pas, there it's "Font.Size".

The font has always been scaled with dpi by design; look into TFont source code!!

All these operations are doing some kind of "double" scaling.

I previously posted something related here:


Edited by: Gabriel Corneanu on Dec 15, 2017 5:52 AM
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02