Bug 398326

Summary: Letter ž is displayed as š instead
Product: [Applications] okular Reporter: galjak
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: andrew.crouthamel, ego, laura.stern, luigi.toscano, yurchor
Priority: NOR    
Version: 1.5.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: ž and š
Letters displayed differently than expected in Okular
PDF shown in Firefox' PDF.js on my system

Description galjak 2018-09-06 14:09:05 UTC
Created attachment 114811 [details]
ž and š

The displaying is wrong, but when I copy the character š and paste it elsewhere it is pasted as ž as it should be.

In the attachment there's a document in which the letter ž appears in the upper right corner.
Comment 1 Laura David Hurka 2018-09-06 15:33:26 UTC
Created attachment 114814 [details]
Letters displayed differently than expected in Okular

In my Okular (1.5.0 on KDE Neon 5.13), several capital letters are displayed wrong.

Does it happen in other PDF files too? It’s possible to change the appearance/meaning of letters in PDF files, so that copying produces other letters.
Comment 2 Yuri Chornoivan 2018-09-06 15:38:12 UTC
Works fine here ("Žiro račun:" is shown correctly, Okular 1.5.70, poppler 0.52).

Do you have Tahoma fonts installed?

Thanks in advance for your answer.
Comment 3 galjak 2018-09-06 15:52:05 UTC
I didn't have Tahoma and I've just installed it and now I've got the same situation as David https://bugsfiles.kde.org/attachment.cgi?id=114814
Comment 4 Laura David Hurka 2018-09-06 15:57:51 UTC
Well, I’ve just installed Tahoma and now it’s displayed fine.

My Okular action “About Backends” doesn’t work, but in aptitude I have libpoppler 0.41.
Comment 5 Luigi Toscano 2018-09-06 20:59:39 UTC
When you don't have Tahoma, what are the fonts used for the replacement? (File->Properties->Fonts)
Comment 6 Laura David Hurka 2018-09-07 13:05:06 UTC
For me, NotoSans-Regular and NotoSans-Bold are used.

When I change /usr/share/fonts/truetype/noto/NotoSans-Regular.ttf to Ubuntu-Regular, it looks equally wrong. When I change it to Tahoma-Regular, it looks correct. Is it possible to change the replacement fonts in Okular?
Comment 7 galjak 2018-09-07 13:45:22 UTC
Without tahoma my system uses Vera instead. I am on Manjaro and when I go to about backend I have this in the libraries tab 
KDE Frameworks 5.49.0
Qt 5.11.1 (built against 5.11.1)
The xcb windowing system
Comment 8 Christian Kalkhoff 2018-09-10 07:21:49 UTC
Created attachment 114872 [details]
PDF shown in Firefox' PDF.js on my system


I can reproduce this behaviour on Archlinux. In PDF.js (Firefox) the proper character is shown as shown in my Screenshot (2018-09-10__pdf_in_firefox.png), in Okular it isn't. 

Okular Version 1.5.1
KDE Frameworks 5.49.0
Qt 5.11.1 (kompiliert gegen 5.11.1)
Das xcb Fenstersystem
Comment 9 Andrew Crouthamel 2018-09-13 21:43:19 UTC
I can confirm the same on Manjaro and KDE Neon with multiple different PDF viewers. This is either an issue with the PDF, the font used to create the PDF, or available font packages for the respective distros.

Due to the reproducibility in other PDF viewers, I'm going to close this as downstream since it most seems to be due to installed font packages.