Bug 419732 - Can not display CJK characters with Adobe's OTF Fonts
Summary: Can not display CJK characters with Adobe's OTF Fonts
Status: CLOSED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 1.9.3
Platform: Arch Linux Linux
: NOR critical
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-06 15:57 UTC by hanyd2010
Modified: 2020-04-07 00:16 UTC (History)
2 users (show)

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


Attachments
fig: my okular wont show cjk characters (190.32 KB, image/png)
2020-04-06 15:57 UTC, hanyd2010
Details
same content in firefox: works as expected (253.05 KB, image/png)
2020-04-06 16:03 UTC, hanyd2010
Details
sample PDF file (26.74 KB, application/pdf)
2020-04-06 16:13 UTC, hanyd2010
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hanyd2010 2020-04-06 15:57:22 UTC
Created attachment 127325 [details]
fig: my okular wont show cjk characters

# SUMMARY

Can not display CJK characters with Adobe's OTF Fonts

# STEPS TO REPRODUCE
1. I opened a pdf file with CJK characters. This pdf file uses 'Adobe Song Std.otf', which could be downloaded here: [Adobe Song Std.otf](https://github.com/mingchen/mac-osx-chinese-fonts/blob/master/Adobe%20Simple%20Chinese%20Fonts/AdobeSongStd-Light.otf)

# OBSERVED RESULT

1. All CJK Characters can not display (showed nothing), but English char and numeric characters could display.
2. Opening the same pdf file with chrome/chromium or firefox or adobe acrobat reader works without problems.

# EXPECTED RESULT

Show CJK characters.

# SOFTWARE/OS VERSIONS

(available in About System)
Operating System: Arch Linux 
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.2
Kernel Version: 5.5.13-arch2-1
OS Type: 64-bit
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 15.3 GiB

# ADDITIONAL INFORMATION

PDF file was generated by pandoc, markdown to pdf tool. Using ctexart with arg "fontset=adobe"
Comment 1 hanyd2010 2020-04-06 16:03:19 UTC
Created attachment 127326 [details]
same content in firefox: works as expected
Comment 2 Yuri Chornoivan 2020-04-06 16:08:25 UTC
Can you share the PDF file (or its sample to reproduce the problem), please?

Can the problem be reproduced in other poppler-based applications (Evince, qpdfview)?

Thanks in advance for your answers.
Comment 3 hanyd2010 2020-04-06 16:13:26 UTC
Created attachment 127327 [details]
sample PDF file
Comment 4 hanyd2010 2020-04-06 16:14:19 UTC
(In reply to Yuri Chornoivan from comment #2)
> Can you share the PDF file (or its sample to reproduce the problem), please?
> 
> Can the problem be reproduced in other poppler-based applications (Evince,
> qpdfview)?
> 
> Thanks in advance for your answers.

attached a sample pdf file.

The problem CAN be reproduced in Evince.
Comment 5 Yuri Chornoivan 2020-04-06 16:18:13 UTC
Please report the bug against poppler:

https://gitlab.freedesktop.org/poppler/poppler/issues/new?issue

The sample file is displayed fine here btw (Okular 20.07.70, poppler 0.87, Mageia 7).
Comment 6 hanyd2010 2020-04-06 16:25:40 UTC
(In reply to Yuri Chornoivan from comment #5)
> Please report the bug against poppler:
> 
> https://gitlab.freedesktop.org/poppler/poppler/issues/new?issue
> 
> The sample file is displayed fine here btw (Okular 20.07.70, poppler 0.87,
> Mageia 7).

Thanks for your reply!
Comment 7 Albert Astals Cid 2020-04-06 21:05:00 UTC
Before doing that make sure you installed poppler-data.

Because even if pacman says

poppler-data (optional) - encoding data to display PDF documents containing CJK characters

It would seem to me you don't have it installed
Comment 8 hanyd2010 2020-04-07 00:15:18 UTC
(In reply to Albert Astals Cid from comment #7)
> Before doing that make sure you installed poppler-data.
> 
> Because even if pacman says
> 
> poppler-data (optional) - encoding data to display PDF documents containing
> CJK characters
> 
> It would seem to me you don't have it installed

---

Thanks! `poppler-data` helped me solve this out!