Bug 483192 - Text and images are not properly scaled at 150% display scale
Summary: Text and images are not properly scaled at 150% display scale
Status: REPORTED
Alias: None
Product: Falkon
Classification: Applications
Component: general (show other bugs)
Version: 24.02.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords: qt6
: 482825 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-03-11 03:15 UTC by Kunshan Wang
Modified: 2024-03-17 09:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Falkon browser at 150% display scale (337.97 KB, image/png)
2024-03-11 03:15 UTC, Kunshan Wang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kunshan Wang 2024-03-11 03:15:26 UTC
Created attachment 166929 [details]
Falkon browser at 150% display scale

SUMMARY

This happens after upgrading to KDE6.  I set my monitor to 150% scale.  But the web content I see in the Falkon browser seems to be zoomed badly, with text and image edges with uneven widths, as if it were zoomed using near-neighbour interpolation.

STEPS TO REPRODUCE
1. Open System Settings, go to "Display & Monitor", and set "Scale" to 150%
2. Open the Falkon browser
3. Open any web page (such as the default page https://www.falkon.org/)

OBSERVED RESULT

See the attached screenshot.  Characters are badly shaped, with unevenly thick and thin strokes.  The image is also a bit blurred. 

EXPECTED RESULT

The text should have sharp edges, and the image should not be that blurred.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.9-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION

If I set "Scale" to 100%, the problem disappears.

This same problem also appears in the Angelfish browser.

This problem does not appear in the Firefox browser (running natively as a Wayland client) even if the "Scale" is set at 150%.

I am using the Plasma Wayland session.  If I invoke "falkon --platform xcb" on the command line, the text looks smoother.  But I am not sure whether it is aware of HiDPI and therefore renders directly at higher resolution, or it uses a smoother scaling algorithm.
Comment 1 Tim Carr 2024-03-11 07:28:23 UTC
I also notice similar distortion at 175% scale, so far I've only noticed within QtWebEngine views like Falkon, Konqueror, and Help Center. Looks like an upstream issue: https://bugreports.qt.io/browse/QTBUG-113574

Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Comment 2 Kunshan Wang 2024-03-11 13:07:03 UTC
(In reply to Tim Carr from comment #1)
> I also notice similar distortion at 175% scale, so far I've only noticed
> within QtWebEngine views like Falkon, Konqueror, and Help Center. Looks like
> an upstream issue: https://bugreports.qt.io/browse/QTBUG-113574

Yes.  I see the same issue with Konqueror and Help Center, too.  The workaround mentioned in that link (`QT_SCALE_FACTOR_ROUNDING_POLICY=RoundPreferFloor`) works for me, too.  I think it is caused by that.
Comment 3 Tim Carr 2024-03-17 00:16:54 UTC
*** Bug 482825 has been marked as a duplicate of this bug. ***