Bug 437613 - Wrong display of " and -
Summary: Wrong display of " and -
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 21.04.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-24 15:09 UTC by Henrik
Modified: 2021-05-27 08:53 UTC (History)
2 users (show)

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


Attachments
Wrong display of characters (67.17 KB, application/pdf)
2021-05-24 15:09 UTC, Henrik
Details
Screenshot of Okular's display (38.11 KB, image/png)
2021-05-24 15:12 UTC, Henrik
Details
Fonts of affected PDF in Manjaro (47.20 KB, image/png)
2021-05-25 06:52 UTC, Henrik
Details
Fonts of affected PDF in Linux Mint (54.20 KB, image/png)
2021-05-25 06:56 UTC, Henrik
Details
Quotes rendering in mupdf 1.18 (above) and Okular (below) (91.83 KB, image/png)
2021-05-26 05:42 UTC, Yuri Chornoivan
Details
Problem on David’s Okular (148.78 KB, image/png)
2021-05-26 11:41 UTC, Laura David Hurka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik 2021-05-24 15:09:16 UTC
Created attachment 138744 [details]
Wrong display of characters

SUMMARY

In attached PDF document characters " (lower) and - are replaced by weird - "non German" charcters - see attachment and Screenshots

STEPS TO REPRODUCE
1. Use attached document
2. Open it
3. Check content of second test box.

OBSERVED RESULT

Characters " (lower) and - are not shown as intended

EXPECTED RESULT

Characters are shown properly

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Manjaro KDE (rolling, up-to-date)
(available in About System)
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Henrik 2021-05-24 15:12:17 UTC
Created attachment 138745 [details]
Screenshot of Okular's display

Screenshot of Okular.
Comment 2 Henrik 2021-05-24 15:13:04 UTC
In Firefox 88.0.1 the document is displayed correct.
Comment 3 Yuri Chornoivan 2021-05-24 15:21:14 UTC
Cannot be reproduced here.

What substitution is shown in the font list on the
"Fonts" tab the window that can be invoked by the "File -> Properties" menu
item?

Can you install some neo-grotesque fonts (Arial and DejaVu)?

Thanks in advance for your answer.
Comment 4 Henrik 2021-05-25 06:52:53 UTC
Created attachment 138763 [details]
Fonts of affected PDF in Manjaro

Screenshot of Fonts of affected PDF.
Comment 5 Henrik 2021-05-25 06:56:29 UTC
Created attachment 138765 [details]
Fonts of affected PDF in Linux Mint

Screenshot of affected fonts in Linux Mint. The error is also visible there, Okular version is 1.9.3
Comment 6 Henrik 2021-05-25 07:08:07 UTC
(In reply to Yuri Chornoivan from comment #3)
> Cannot be reproduced here.
> 
> What substitution is shown in the font list on the
> "Fonts" tab the window that can be invoked by the "File -> Properties" menu
> item?
> 
> Can you install some neo-grotesque fonts (Arial and DejaVu)?
> 
> Thanks in advance for your answer.

Hi Yuri, I have no idea what "neo-grotesque" fonts are. But in my Manjaro I have:

- DejaVu Math
- DejaVu Sans
- DejaVu Sans Mono

but no Arial (it's a MS font, right?)

Please advise if there is any specific font to be installed for testing.

Thanks, Henrik
Comment 7 Yuri Chornoivan 2021-05-25 07:18:31 UTC
Must be a poppler problem (evince shows the same rendering, but mupdf renders correctly).
Comment 8 Albert Astals Cid 2021-05-25 21:22:13 UTC
Yuri you originally said it worked for you but now you say that evince also fails for you?

Can you confirm if you get good rendering with Okular?
Comment 9 Yuri Chornoivan 2021-05-26 05:42:19 UTC
Created attachment 138796 [details]
Quotes rendering in mupdf 1.18 (above) and Okular (below)

(In reply to Albert Astals Cid from comment #8)
> Yuri you originally said it worked for you but now you say that evince also
> fails for you?

It works for the snippet from the reporter's screenshot but does not work in the other place (see my screenshot).

> Can you confirm if you get good rendering with Okular?

The quotes from the reporter's snippet are rendered correctly in both Okular and Evince on my machine (Microsoft's Arial and DejaVu Sans substitution).
Comment 10 Laura David Hurka 2021-05-26 11:41:10 UTC
Created attachment 138802 [details]
Problem on David’s Okular

I get promille and very long dashes instead. Fonts are replaced with “Arimo”.
Comment 11 Albert Astals Cid 2021-05-26 22:13:53 UTC
The file seems relatively broken, at least both mupdf and gs complain quite a bit about its fonts.

Anyhow, this is not an okular problem because okular doesn't do the rendering of pdf files, popple does.

Please report the issue at https://gitlab.freedesktop.org/poppler/poppler/-/issues
Comment 12 Henrik 2021-05-27 08:53:13 UTC
(In reply to Albert Astals Cid from comment #11)
> The file seems relatively broken, at least both mupdf and gs complain quite
> a bit about its fonts.
> 
> Anyhow, this is not an okular problem because okular doesn't do the
> rendering of pdf files, popple does.
> 
> Please report the issue at
> https://gitlab.freedesktop.org/poppler/poppler/-/issues

Thanks for clarification - I've created a bug report against poppler:

https://gitlab.freedesktop.org/poppler/poppler/-/issues/1086