Bug 419452

Summary: Okular does not display some Unicode characters
Product: [Applications] okular Reporter: Jakub <jakubmadej.pl+kde>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: aacid, yurchor
Priority: NOR    
Version First Reported In: 1.9.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Test file
Screenshot
Example PDF
Screenshot from Okular
Screenshot
Okular properties

Description Jakub 2020-03-31 13:14:34 UTC
STEPS TO REPRODUCE
1. Open a PDF containing Unicode Character “ż” (U+017C) in Okular

OBSERVED RESULT
Okular can't display such character, there is blank space where the character is supposed to be displayed.


EXPECTED RESULT
All characters are displayed correctly.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: archlinux
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.1

ADDITIONAL INFORMATION
Other viewer, like Evince (or Chrome built in viewer) do not have this problem and all characters are displayed correctly.
 
I've also analyzed used fonts (File->Properties->Fonts) with Plasma font viewer and all those fonts contain needed characters.
Comment 1 Yuri Chornoivan 2020-03-31 13:33:02 UTC
Created attachment 127135 [details]
Test file

Looks like everything is good here (Okular from git/master, poppler 0.87).

Can you recheck?
Comment 2 Yuri Chornoivan 2020-03-31 13:34:27 UTC
Created attachment 127136 [details]
Screenshot
Comment 3 Jakub 2020-03-31 14:30:57 UTC
Created attachment 127137 [details]
Example PDF

Look for "WYPOSAŻENIE (2015.03-2015.07)" (middle of 1st page)
Comment 4 Jakub 2020-03-31 14:32:36 UTC
Created attachment 127138 [details]
Screenshot from Okular

This screenshot shows how Okular is displaying PDFs
Comment 5 Yuri Chornoivan 2020-03-31 14:36:48 UTC
Created attachment 127139 [details]
Screenshot

Works fine here with MS core fonts installed.
Comment 6 Jakub 2020-03-31 14:41:16 UTC
Created attachment 127141 [details]
Okular properties
Comment 7 Jakub 2020-03-31 14:41:47 UTC
I have https://aur.archlinux.org/packages/ttf-ms-fonts/ installed, but I'm not sure if Okular is picking anything from that package (see attached "properties" screenshot).
Comment 8 Yuri Chornoivan 2020-03-31 15:01:08 UTC
(In reply to Jakub from comment #7)
> I have https://aur.archlinux.org/packages/ttf-ms-fonts/ installed, but I'm
> not sure if Okular is picking anything from that package (see attached
> "properties" screenshot).

Ok. Can you install Liberation fonts and try again?
Comment 9 Jakub 2020-03-31 15:25:03 UTC
I have liberation fonts already installed (ttf-liberation-2.1.0-1)
Comment 10 Albert Astals Cid 2020-03-31 21:56:31 UTC
I think the font you're missing and that Yuri has is Calibri (see his screenshot), there's not much we can do if people create PDF files without embedding the fonts outside the "standard 14 pdf fonts".

Please try obtaining calibri and see if that fixes the issue for you.
Comment 11 Jakub 2020-04-01 08:15:39 UTC
I've installed ttf-vista-fonts package (containing Calibri) but it didn't help. 

Anyway - why would I need additional fonts while Evince is displaying everything just fine?
Comment 12 Albert Astals Cid 2020-04-01 21:34:38 UTC
That's a good question.

Anyhow Okular is not doing any rendering of pdf files, so in any case this is a poppler bug.

Please report it at https://gitlab.freedesktop.org/poppler/poppler/-/issues