Menu

#608 Control text sizes do not adjust to system setting if text scaling is other than 100%

open-accepted
Maettu
5
2026-03-12
2026-02-19
Maettu
No

Triggered by a discussion post. Root cause is a limitation of WinForms with .NET 7 and earlier: https://learn.microsoft.com/en-us/dotnet/core/compatibility/windows-forms/8.0/top-level-window-scaling

Issue will be fixed when eventually upgrading the YAT code base to .NET 8+ (FR#369). Applying the workaround proposed by https://learn.microsoft.com/en-us/dotnet/desktop/winforms/how-to-respond-to-font-scheme-changes-in-a-windows-forms-application cannot be the proper solution, as it introduces a dependency to Microsoft.Win32 which is not available on Mono/Linux.

For the moment, a limitation has been added to the release notes:

System text scaling other that 100% is not reflected by the control texts (bug #608) which is limitation of Windows.Forms with .NET 7 and before. Issue will be fixed when eventually upgrading the YAT code base to .NET 8+ (feature request #369).

Note that e.g. Notepad++ shows the very same behavior, see the attached screenshot.

1 Attachments

Discussion

  • Maettu

    Maettu - 2026-03-11

    System text scaling other that 100% is now reflected in most locations, working around limitation of Windows.Forms with .NET 7 and before. However, exiting and restarting YAT is needed to reflect the changes in scaling. This will be fixed fully when eventually upgrading to .NET 8+ FR #369.

     
  • Maettu

    Maettu - 2026-03-12

    As state above, most locations now work fine. But there are some remaining issues:

    • UsbSerialHidReportFormatPreview and UsbSerialHidDeviceSettings show some issues.
    • PredefinedCommandSettings page list overlaps at bottom.
    • MultiLineBox does not properly adapt the buttons.

    Accepting these remaining for the moment.

     

    Last edit: Maettu 2026-03-12

Log in to post a comment.

MongoDB Logo MongoDB