Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some fonts not rendered correctly(not showing up) #10084

Closed
gHensges opened this issue Sep 19, 2018 · 3 comments
Closed

some fonts not rendered correctly(not showing up) #10084

gHensges opened this issue Sep 19, 2018 · 3 comments

Comments

@gHensges
Copy link

Attach (recommended) or Link to PDF file here:

Configuration:

  • Web browser and its version: Chrome 68.0.3440.106
  • Operating system and its version: Windows 10 Pro, 1709 build 16299.611
  • PDF.js version: Actual Demo Project
  • Is a browser extension: No.

Steps to reproduce the problem:

  1. Just load attached pdf.

What is the expected behavior? (add screenshot)
image

What went wrong? (add screenshot)
image

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
Rechnung_nach_Import_unleserlich.pdf

@THausherr
Copy link
Contributor

Same on W7 with FF62.

@janpe2
Copy link
Contributor

janpe2 commented Sep 25, 2018

The embedded CFF fonts are invalid because the glyphs fail to follow CFF Type2 specification, page 11:

  1. Hints: zero or more of each of the following hint operators, in exactly the following order: hstem, hstemhm, vstem, vstemhm, cntrmask, hintmask.

In the PDF file, the glyphs have operators in wrong order: first vstem and then hstem.

Here is a PDF in which I have fixed the order of stem hint operators in the character c, so PDF.js is able to render that character but not the other ones.
glyph_c_fixed.pdf

Issue #10014 seems to have exactly the same font problem.

@gHensges
Copy link
Author

gHensges commented Oct 1, 2018

Nice that it is understood where the issue is coming from. But what about a fix. Other pdf-renderer are able to deal with this kind of fonts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants