xhorak / firefox-devedition-flatpak

Flatpak manifest and patches to build Firefox
https://firefox-flatpak.mojefedora.cz/
68 stars 28 forks source link

[FirefoxNightly] pdf fonts misrendered when using Nightly on flatpak #114

Open marcosps opened 5 years ago

marcosps commented 5 years ago

Mentioning a bug from https://github.com/mozilla/pdf.js/issues/10352

Is there any test to make both "normal" Firefox from Firefox from inside Flatpak? Should it have differences?

marcosps commented 5 years ago

This is still present in today's update of Nightly in flatpak.

xhorak commented 5 years ago

I cannot reproduce it on my setup (Fedora). Please double check that you're using gnome platform from the flathub and not from gnome: flatpak info org.gnome.Platform look for Origin: flathub. There's been some issues with fonts and older gnome platform.

If that's okay or won't fix the problem, run package as:

flatpak run --command=sh org.mozilla.FirefoxNightly
FC_DEBUG=20 firefox -no-remote > fc_output

Attach fc_output to the report or try to lookup the replacement font for the serif as it seems the be the font family in the document.

xhorak commented 5 years ago

You can also run fc-match serif for getting the used font as metioned in issue #111.

marcosps commented 5 years ago

You can also run fc-match serif for getting the used font as metioned in issue #111.

Here is the output of fc-match serif: DejaVuSerif.ttf: "DejaVu Serif" "Book"

marcosps commented 5 years ago

I cannot reproduce it on my setup (Fedora). Please double check that you're using gnome platform from the flathub and not from gnome: flatpak info org.gnome.Platform look for Origin: flathub. There's been some issues with fonts and older gnome platform.

Nightly is using gnome.Platform 3.26, which seems to be not updated since last November: _flatpak info org.mozilla.FirefoxNightly/x86_64/master Ref: app/org.mozilla.FirefoxNightly/x86_64/master ID: org.mozilla.FirefoxNightly Arch: x86_64 Branch: master Origin: org.mozilla.FirefoxNightly-origin Collection ID: Date: 2019-01-10 13:48:50 +0000 Subject: Build of org.mozilla.FirefoxNightly Commit: f4c048f809f03be66dcacfef76916345b54356ae076b68b5f3738ff4dd94a5fc Parent: 6e830e78bd35aa6b03f971bdaee4d5a2757f8e83a4aa949af4736dac351038e0 Installed size: 343.8 MB Runtime: org.gnome.Platform/x86_64/3.26 Sdk: org.gnome.Sdk/x8664/3.26

And here is the gnome.Platform info, which origin is flathub: _flatpak info org.gnome.Platform//3.26
Ref: runtime/org.gnome.Platform/x86_64/3.26 ID: org.gnome.Platform Arch: x86_64 Branch: 3.26 Origin: flathub Collection ID: org.flathub.Stable Date: 2018-11-07 04:52:36 +0000 Subject: build of org.gnome.Sdk, Wed Nov 7 00:54:52 UTC 2018 Commit: d01b14e467c27c7f0991699bd8ae6801a72bd178232705f15384520ee45ff738 Parent: 206dc8b94b672634830efc1203c0330fce77c9ddd0a823089f1f237476367d57 Location: /var/lib/flatpak/runtime/org.gnome.Platform/x8664/3.26/d01b14e467c27c7f0991699bd8ae6801a72bd178232705f15384520ee45ff738 Installed size: 1.3 GB

If that's okay or won't fix the problem, run package as:

flatpak run --command=sh org.mozilla.FirefoxNightly
FC_DEBUG=20 firefox -no-remote > fc_output

Attach fc_output to the report or try to lookup the replacement font for the serif as it seems the be the font family in the document.

Here is the output of the PDF being opened with FC_DEBUG=20: https://paste.opensuse.org/view//8c32a1cb

marcosps commented 5 years ago

@xhorak Can provide you more info, or is this is enough to check what's the problem ?

marcosps commented 5 years ago

@xhorak Can I provide any other info to help you guys in solving this issue?

marcosps commented 5 years ago

Another reproducer: http://www.mulix.org/lectures/kernel_oopsing/kernel_oopsing.pdf

thebitstick commented 5 years ago

Same issue on Nightly. Runtime/SDK should NOT be 3.26. Needs to be set to 3.32..

marcosps commented 5 years ago

Same issue even after the recent update of Nightly: 68.0a1 (2019-04-16) (64-bit)

marcosps commented 5 years ago

@xhorak is it possible to change the SDK version as @thebitstick suggested?

marcosps commented 1 year ago

Now this issue happens even on the stable FF on Flatpak: 114.0.1 (64-bit)

image

on evince it works great:

image