Bug 398326 - Letter ž is displayed as š instead
Summary: Letter ž is displayed as š instead
Status: RESOLVED DOWNSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.5.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-06 14:09 UTC by galjak
Modified: 2018-09-13 21:43 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
ž and š (54.89 KB, application/pdf)
2018-09-06 14:09 UTC, galjak
Details
Letters displayed differently than expected in Okular (90.62 KB, image/png)
2018-09-06 15:33 UTC, Laura David Hurka
Details
PDF shown in Firefox' PDF.js on my system (9.20 KB, image/png)
2018-09-10 07:21 UTC, Christian Kalkhoff
Details

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