Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

Firefox (Flatpak) displaying text in PDF files incorrectly

  • 3 відповіді
  • 0 мають цю проблему
  • 1 перегляд
  • Остання відповідь від zeroknight

more options

When i go to open a PDF file with Firefox, the text renders incorrectly (see image) for most PDF files, but not all (i'm not sure why. And this only happens with the Flatpak version of Firefox [1]. It doesn't happen with Firefox ESR (DEB version from my distribution) [2] and it doesn't happen if i view the same PDF file with pdf.js in a non-Firefox Flatpak app (GNOME Web) [3].

I've tried reinstalling and tried starting in troubleshoot mode, but neither seemed to fix the issue.

[1]:

  • Name: Firefox
  • Version: 117.0
  • Distribution ID: mozilla-flatpak

[2]:

  • Name: Firefox
  • Version: 102.15.0esr
  • Distribution ID: BLANK (preinstalled with Debian Linux 12)

[3]:

  • Name: GNOME Web (Flatpak)
  • Version: 44.6
When i go to open a PDF file with Firefox, the text renders incorrectly (see image) for most PDF files, but not all (i'm not sure why. And this only happens with the Flatpak version of Firefox [1]. It doesn't happen with Firefox ESR (DEB version from my distribution) [2] and it doesn't happen if i view the same PDF file with pdf.js in a non-Firefox Flatpak app (GNOME Web) [3]. I've tried reinstalling and tried starting in troubleshoot mode, but neither seemed to fix the issue. [1]: * '''Name''': Firefox * '''Version''': 117.0 * '''Distribution ID''': mozilla-flatpak [2]: * '''Name''': Firefox * '''Version''': 102.15.0esr * '''Distribution ID''': ''BLANK (preinstalled with Debian Linux 12)'' [3]: * '''Name''': GNOME Web (Flatpak) * '''Version''': 44.6
Прикріплені знімки екрана

Обране рішення

Go to about:config in the address bar and try changing pdfjs.disableFontFace to true.

Читати цю відповідь у контексті 👍 2

Усі відповіді (3)

more options

It works for me on Ubuntu 23.04. Are all your flatpak packages up to date?

flatpak update

Does it still happen in a new profile? Alternatively you could refresh your existing profile.

The font being used is DejaVu for me.

more options
Are all your flatpak packages up to date?

It appears to be so. Using the flatpak list command, i can see that it's on version 117.0 (stable branch).

Does it still happen in a new profile?

I hadn't tried that, but i've checked and it does happen in a new profile.

The font being used is DejaVu for me.

I have the default DejaVu font as the default font, but i have the "Allow pages to choose their own fonts, instead of your selections above" box checked, so it should be trying to display the following fonts, which are either embedded or standard (according to GNOME Document Viewer):

  • Times-Roman
  • Helvetica
  • Helvetica-Bold
  • Symbol
  • Times-Italic
  • Courier
  • Courier-Oblique
  • Times-BoldItalic

If i uncheck the "Allow pages to choose their own fonts, instead of your selections above" box, then text will display correctly (though not in the correct font of course). The only problem with this fix is that it also does this to normal web pages and makes everything look weird.

Since it's working for you on Ubuntu, i would think that it would be some dependency issue, but i don't believe that applies to Flatpaks since their dependencies are sandboxxed with the app.

Thank you for the reply! I really appreciate it.

Змінено Logan B

more options

Вибране рішення

Go to about:config in the address bar and try changing pdfjs.disableFontFace to true.