-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Open
Labels
Description
Attach (recommended) or Link to PDF file
https://github.com/user-attachments/files/23527111/main__compressed.pdf
Web browser and its version
Firefox 147.0.1
Operating system and its version
Fedora Linux 43
PDF.js version
5.4.445
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
- Generate a document with LuaTeX or typst (font I used: TeX Gyre Pagella)
- Run the file through ghostscript. For me this looks like:
gs -dPrinted=false -sDEVICE=pdfwrite -o output.pdf input.pdf - pdf.js shows text incorrectly and elongates characters. Please see this issue for examples: Running typst pdf output through ghostscript breaks fonts typst/typst#7373
The rewritten file does not appear incorrectly in Okular.
What is the expected behavior?
pdf.js shows text correctly and does not elongate characters
What went wrong?
Correct original / ghostscript rewritten viewed in other viewers like Okular:

Link to a viewer
No response
Additional context
Tested and issue occurs on latest git master as well. Setting browser.display.use_document_fonts to 0 in Firefox is a workaround.
Reactions are currently unavailable
