Bug 407438

Summary: Text hinting causes failure to render some texts
Product: [Applications] okular Reporter: Lukas Jelinek <lukas>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: aacid, jan
Priority: NOR    
Version First Reported In: 1.6.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Problematic document

Description Lukas Jelinek 2019-05-11 21:59:23 UTC
Created attachment 119993 [details]
Problematic document

SUMMARY
When text hinting is enabled, Okular fails to render some texts in some documents.

STEPS TO REPRODUCE
1. Enable text hinting
2. Open a document 
3. Observe rendered texts in the document

OBSERVED RESULT
In some documents, some texts are not rendered.

EXPECTED RESULT
All text are rendered as with text hinting disabled.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION
Kubuntu 19.04
One problematic document is attached.
Comment 1 Christoph Feck 2019-05-30 18:44:50 UTC
Since I can reproduce with qpdfview (using libpoppler version 0.72 and "Splash" backend), I suspect it is a poppler issue.
Comment 2 Laura David Hurka 2019-05-30 19:46:03 UTC
(In reply to Lukas Jelinek from comment #0)
> EXPECTED RESULT
> All text are rendered as with text hinting disabled.

May I ask how the hinting works for the rendered texts?

I enabled hinting in my Okular, and some texts in the attached example document disappeared. I couldn’t see any difference in the rendering of the other text. I would expect them to be hinted...

(Hinting: Vertices of letter outline aligned to nearest pixel boundary, so it looks less smeared. Or does hinting mean something else here?)
Comment 3 jan 2021-02-24 10:21:21 UTC
This is still the case with 20.12.2.
Comment 4 Albert Astals Cid 2021-02-24 21:25:20 UTC
This is something that will never be fixed in Okular since Okular is not involved in how pdf files are rendered. Please report this as a bug in poppler, the library we use for pdf rendering https://gitlab.freedesktop.org/poppler/poppler/-/issues