Bug 435073

Summary: Okular uses wrong DPI scaling with multi-monitor setups
Product: [Applications] okular Reporter: Pieter-Jan Briers <pieterjan.briers>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aacid, nate, oliver.sander
Priority: NOR    
Version First Reported In: 20.12.2   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of the broken DPI scaling, and how it makes the text very painful to read.
I uploade the wrong screenshot, my bad.

Description Pieter-Jan Briers 2021-03-28 17:08:05 UTC
Created attachment 137138 [details]
Screenshot of the broken DPI scaling, and how it makes the text very painful to read.

SUMMARY
I have two monitors. My primary monitor is a 1440p monitor with 100% UI scaling, my secondary monitor is my laptop's built-in 1080p and it has 125% UI scaling.

Okular seems to be doing broken rendering at 125% DPI scale and nearest-neighboring it down, instead of rendering at the correct DPI scale for the monitor it's on (or just pretending like DPI doesn't exist and letting Windows bilinear it up, which would still be much more readable)

Image attached with what it looks like.
The broken DPI scaling affects *everything* in the interface. The PDF, the toolbar, etc...

STEPS TO REPRODUCE
1. Have two monitors with separate DPI scale.
2. Start Okular
3. Witness Okular having broken DPI scaling.

OBSERVED RESULT
Broken DPI scaling trying to do 125% on my primary monitor instead of 100%

EXPECTED RESULT
Okular to correctly switch between DPI scales depending on the current monitor.

SOFTWARE/OS VERSIONS
Windows: Windows 10 Pro 19042.867
Okular is installed from the Microsoft Store.

ADDITIONAL INFORMATION
Filelight (which I also have from the MS Store) works perfectly fine.
Comment 1 Pieter-Jan Briers 2021-03-28 17:10:18 UTC
Created attachment 137139 [details]
I uploade the wrong screenshot, my bad.
Comment 2 Pieter-Jan Briers 2022-01-01 22:55:28 UTC
This bug seems to have been made less bad since I reported it. It's still not 100% fixed (icons are still scaled wrong, and moving the window between monitors seems to not cause the PDF view to re-render immediately thus scaling poorly until you zoom or something) but it's definitely usable now!
Comment 3 Albert Astals Cid 2022-01-21 13:25:08 UTC

*** This bug has been marked as a duplicate of bug 433003 ***