FONT SCALING

Giorgio Sfiligoi 146 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.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,833 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,096 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jiachen Li-MSFT 31,166 Reputation points Microsoft Vendor
    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.

    0 comments No comments

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.