FONT SCALING

Giorgio Sfiligoi 391 Reputation points
2024-10-02T17:55:00.9466667+00:00

I have developed a pretty large application for desktop using VS Community on a 14" laptop with Windows 10.

Now I migrated to a desktop PC with a 22" monitor and Windows 11.

When I run my application with the default display scaling 100% it's all OK.

If I change the scaling to 125%, all the windows scale properly, but there are problems with the font rendering i.e.: only the captions of the MainFrame and modal dialogs look with a crisp scaled font. All the other texts in my application, such as labels, messages, etc. are indeed scaled, but their look is thick and blurry.

Developer technologies | .NET | Other
Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 34,221 Reputation points Microsoft External Staff
    2024-10-03T02:10:47.1333333+00:00

    Hi @Giorgio Sfiligoi ,

    Have you explicitly declare DPI awareness in your application's manifest file? This will make your application handle DPI scaling more effectively.

    Ensure that text rendering mode is set to ClearType or SystemDefault to optimize font clarity.

    Older fonts may not handle scaling as effectively. Check whether you're using DPI-aware fonts like "Segoe UI" or other modern fonts that scale well.

    Best Regards.

    Jiachen Li


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.