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

[Bug]: Incorrect rendering of type3 fonts #19634

Open
THausherr opened this issue Mar 10, 2025 · 1 comment
Open

[Bug]: Incorrect rendering of type3 fonts #19634

THausherr opened this issue Mar 10, 2025 · 1 comment

Comments

@THausherr
Copy link
Contributor

Attach (recommended) or Link to PDF file

PDFIUM-362796158-type3.pdf

Web browser and its version

FF 136.0

Operating system and its version

Microsoft Windows [Version 10.0.19045.5555]

PDF.js version

v4.10.38

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem

open file

What is the expected behavior?

Image

What went wrong?

Image

Link to a viewer

No response

Additional context

The red glow around the glyphs is missing.
Note that the resources are not in the charprocs, but in the font itself, e.g. at Root/Pages/Kids/[0]/Resources/Font/F8/Resources
The File is from the google pdfium error tracker.

@Snuffleupagus
Copy link
Collaborator

Snuffleupagus commented Mar 10, 2025

Note that the resources are not in the charprocs, but in the font itself, e.g. at Root/Pages/Kids/[0]/Resources/Font/F8/Resources

We're already preferring those /Resources and there are no warnings/errors about not being able to find resources, hence that may not actually be the source of the bug in our case; see

const fontResources = this.dict.get("Resources") || resources;

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

2 participants