At higher scaling, font gets unusually bigger and alignment also got distorted
Describe the bug I see 2 minor problems.
- the alignment got distorted in section 3.
- the font became unusually bigger from 175% and above resolution. reference screenshots are attached indetail in the doc =>
To Reproduce Run the Snippet367 at 175% or 200% resolution, you see the 2 problems reported.
Expected behavior Behavior should be same as 100% or 125% or 150%.
Screenshots Attached in the doc.
Environment:
- Select the platform(s) on which the behavior is seen:
-
- [ ] All OS
-
- [x] Windows
-
- [ ] Linux
-
- [ ] macOS
Version since Tried on this version Eclipse SDK Version: 2025-03 (4.35) Build id: I20250209-1800 OS: Windows 11, v.10.0, x86_64 / win32 Java vendor: Eclipse Adoptium Java runtime version: 22.0.2+9 Java version: 22.0.2
Workaround (or) Additional context Not aware of.
At least the font size is expected behavior when running SWT with default settings (i.e., swt.autoScale=integer200), isn't it? When you start the snippet with -Dswt.autoScale=quarter, it will probably show the results you expect, but that's not how SWT behaves by default.
I'm not sure. Didn't have a look at the snippet yet, but shouldn't be there font still everywhere the same size? I will have a short look later to get in impression about it.
Taking a look at the screenshots, the font size is only changed in line "4. Painted image (multi-res, zoomed paint)". And this "zoomed paint" explicitly changes the font size: https://github.com/eclipse-platform/eclipse.platform.swt/blob/df1c412f73b10d7fb68868c49410d7a96f00604d/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet367.java#L214-L218
The scale factor used here will be 1 for 100%-150% and 2 for 175% and above. That's why I would expect this behavior. But maybe I miss something.
Any further concerns or opinions on this, @deepika-u @akoch-yatta?
My opinion is still that this shows exactly the expected behavior, so I would be in favor of closing the issue.