Bug 419452 - Okular does not display some Unicode characters
Summary: Okular does not display some Unicode characters
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 1.9.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-31 13:14 UTC by Jakub
Modified: 2020-04-01 21:34 UTC (History)
2 users (show)

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


Attachments
Test file (12.06 KB, application/pdf)
2020-03-31 13:33 UTC, Yuri Chornoivan
Details
Screenshot (95.58 KB, image/png)
2020-03-31 13:34 UTC, Yuri Chornoivan
Details
Example PDF (1.16 MB, application/pdf)
2020-03-31 14:30 UTC, Jakub
Details
Screenshot from Okular (134.62 KB, image/png)
2020-03-31 14:32 UTC, Jakub
Details
Screenshot (72.25 KB, image/png)
2020-03-31 14:36 UTC, Yuri Chornoivan
Details
Okular properties (39.99 KB, image/png)
2020-03-31 14:41 UTC, Jakub
Details

Note You need to log in before you can comment on or make changes to this bug.
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