Bug 432611 - Okular ignores system-wide sub-pixel rendering
Summary: Okular ignores system-wide sub-pixel rendering
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 20.12.2
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-07 14:51 UTC by Vladimir Yerilov
Modified: 2021-02-10 07:50 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Gray scale text in Okular (51.48 KB, image/png)
2021-02-07 14:51 UTC, Vladimir Yerilov
Details
RGB scale in Kate (29.96 KB, image/png)
2021-02-07 14:52 UTC, Vladimir Yerilov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Yerilov 2021-02-07 14:51:08 UTC
Created attachment 135484 [details]
Gray scale text in Okular

SUMMARY
Okular ignores system-wide setting for sub-pixel rendering, i.e. it uses grayscale instead of RGB, for example.

STEPS TO REPRODUCE
1. Open any PDF file, scrot it, zoom the resulting file or just zoom using Plasma's Zoom effect.
2. Do the same, but open the file in Kate.
3. See the difference.

OBSERVED RESULT
Grayscale rendering for text in Okular.

EXPECTED RESULT
Okular is supposed to follow explicitly set system settings, or have some configuration preference for this, if that's set this way for some reason.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
On my system text opened in Okular is less readable than the same text opened with e.g. WPS PDF reader due to the above-described issue(/feature?).
Comment 1 Vladimir Yerilov 2021-02-07 14:52:21 UTC
Created attachment 135485 [details]
RGB scale in Kate
Comment 2 Vladimir Yerilov 2021-02-07 15:04:28 UTC
Oh and btw. Bug 418363 seems to be caused by the same or similar thing. I've just zoomed the window of KInfoCenter in, and those "blurry" items I reported are rendered using gray scale, while other text is RGB.
Comment 3 Albert Astals Cid 2021-02-07 17:47:37 UTC
okular doesn't do any PDF rendering. Poppler does pdf rendering.
Comment 4 Oliver Sander 2021-02-07 20:06:08 UTC
You can set certain aliasing settings in "preferences -> performance".  They are not tied to any system-wide settings, though.
Comment 5 Jan Rathmann 2021-02-07 21:28:27 UTC
Can confirm that I also have only grayscale rendering in documents displayed by Okular allthough subpixel hinting is enabled in system settings. The difference is very subtle for me though, I didn't notice that before and had to view screenshots at high zoom level to confirm.
Comment 6 Vladimir Yerilov 2021-02-10 07:50:08 UTC
Turns out this is a quite interesting issue. Thing is, such behavior is observed in other distros, such as Fedora (Plasma), Ubuntu (Gnome, with its PDF viewer, I don't remember its name, but it doesn't actually matter). Haven't checked openSUSE though. Looks like it's Poppler's fault then.