Closed Bug 1752414 Opened 3 years ago Closed 2 years ago

PDF fonts poorly in Linux with Firefox

Categories

(Firefox :: PDF Viewer, defect)

Firefox 91
defect

Tracking

()

RESOLVED DUPLICATE of bug 1766039
Tracking Status
firefox-esr91 --- affected
firefox96 --- affected
firefox97 --- affected
firefox98 --- affected

People

(Reporter: csae2608, Unassigned)

References

Details

(Whiteboard: [pdfjs-non-standard-font])

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0

Steps to reproduce:

open PDF in Firefox under Linux Ubuntu 18.04 via website

https://web.archive.org/web/20011111104216/http://www.lungusa.org/air/pdf/pm01_rep.pdf

https://web.archive.org/web/20011111104402/http://www.lungusa.org/air/pdf/ozone01_rep.pdf

Actual results:

poor fonts are being displayed

Expected results:

should have included "original" fonts by default?

this could be achieved after going to

about:config (in adress bar)
setting "browser.display.use_document_fonts" to "0" instead of "1"

should be default behaviour, or am i wrong?

The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → PDF Viewer

Pretty sure there is already a bug around about this.

Keywords: dupeme

Thanks for reporting!

I tried to reproduce this issue using Firefox 91.5.1esr and Beta 97 on Ubuntu 20.04, but unfortunately I didn’t manage to recreate the situation.
Upon changing the setting "browser.display.use_document_fonts" to "0" instead of "1" though, using Firefox 91.5.1esr, I refreshed the web pages and the pages were blank.

Can you please mention the Firefox version you're using? And can you also attach a screenshot of the occurring issue?

Flags: needinfo?(csae2608)

(In reply to Marco Castelluccio [:marco] from comment #2)

Pretty sure there is already a bug around about this.

There's actually bug 1563678, but it seems to be the opposite.

Type: enhancement → defect
Keywords: dupeme
See Also: → 1563678

Hello,
i made some screenshot,
please see the difference (in readability)

with setting "0" (user-set)
https://ibb.co/d7PnX0f
https://ibb.co/0pNdLxL
https://ibb.co/SQKxVLk

with setting "1" (standard, firefox 91.5 esr, 64bit, ubuntu 18.04 LTS)
https://ibb.co/z7617DY
https://ibb.co/FVnZZDQ
https://ibb.co/NKkMmVw

Thanks.

Flags: needinfo?(csae2608)

Thank you for the reply!

I will mark this issue as NEW since I managed to reproduce it on Ubuntu 18.04 using Firefox 91.5.1esr, Firefox 96 and Nightly 98.0a1.
The issue was not reproducible on Ubuntu 20.04 though.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true

Change the status for beta to have the same as nightly and release.
For more information, please visit auto_nag documentation.

can confirm that this issue occurs on several other sites aswell, basically alot of PDF i opened "randomly" were affected,

glad that this issue is no more present in Ubuntu 20.04. thanks very much for your time & help.

Whiteboard: [pdfjs-non-standard-font]

I had filed bug 1767925, which was closed as a duplicate of this. That bug is specific to the snap on ubuntu. I have switched back to the deb via the mozillateam ppa, purely because of this issue. The deb works fine. The problem seems to be that the snap is not able to find fonts which are on the system but not embedded in the pdf. In other words it's an ubuntu snap packaging bug, not a firefox bug.

(In reply to rahul.siddharthan from comment #12)

I had filed bug 1767925, which was closed as a duplicate of this. That bug is specific to the snap on ubuntu. I have switched back to the deb via the mozillateam ppa, purely because of this issue. The deb works fine. The problem seems to be that the snap is not able to find fonts which are on the system but not embedded in the pdf. In other words it's an ubuntu snap packaging bug, not a firefox bug.

Thanks for the info, I've reopened bug 1767925 and marked it as blocking the meta bug tracking all Snap issues.

Are you still able to reproduce this with latest Nightly? It might have been fixed by https://github.com/mozilla/pdf.js/pull/16363 or https://github.com/mozilla/pdf.js/pull/16416.

Flags: needinfo?(csae2608)
Flags: needinfo?(ada.cristea)

I tried the two pdfs in the original report as well as the pdf in my (duplicate) bug report 1768783, and they all render correctly with 113.0.1 on Ubuntu. Thanks very much. :)

Thanks! Marking this as duplicate of bug 1766039 then.

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1766039
Flags: needinfo?(csae2608)
Flags: needinfo?(ada.cristea)
Resolution: --- → DUPLICATE
No longer duplicate of this bug: 1768783
You need to log in before you can comment on or make changes to this bug.