pdf.js bundled GitLab cannot render CJK characters
Summary
GitLab cannot render PDF including CJK characters correctly. And, Firefox show 'Warning: Error during font loading: Error: Unable to load CMap at: nullAdobe-Japan1-UCS2' on JavaScript console.
Steps to reproduce
- Compile a tex file including CJK characters with IPA fonts
- Commit compiled PDF and push to GitLab
- Show the PDF on GitLab
Example Project
- An example project is here: https://gitlab.com/mizunashi-mana/test-latex-ipa
- The target PDF is here: https://gitlab.com/mizunashi-mana/test-latex-ipa/blob/master/article.pdf
What is the current bug behavior?
Render only page number and show 'Warning: Error during font loading: Error: Unable to load CMap at: nullAdobe-Japan1-UCS2' on JavaScript console
What is the expected correct behavior?
Render "日本語" with page number. The example PDF can render correctly on https://mozilla.github.io/pdf.js/web/viewer.html .
Relevant logs and/or screenshots
Possible fixes
Maybe, this is an upstream issue of pdf.js . Please upgrade bundled pdf.js .
Edited by Mizunashi Mana
