firefox-devedition-flatpak icon indicating copy to clipboard operation
firefox-devedition-flatpak copied to clipboard

[FirefoxNightly] pdf fonts misrendered when using Nightly on flatpak

Open marcosps opened this issue 6 years ago • 12 comments

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 avatar Dec 18 '18 18:12 marcosps

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

marcosps avatar Jan 10 '19 15:01 marcosps

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 avatar Jan 10 '19 16:01 xhorak

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

xhorak avatar Jan 10 '19 16:01 xhorak

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 avatar Jan 13 '19 23:01 marcosps

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/x86_64/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/x86_64/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 avatar Jan 13 '19 23:01 marcosps

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

marcosps avatar Jan 18 '19 10:01 marcosps

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

marcosps avatar Feb 13 '19 15:02 marcosps

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

marcosps avatar Feb 24 '19 12:02 marcosps

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

thebitstick avatar Mar 21 '19 03:03 thebitstick

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

marcosps avatar Apr 17 '19 01:04 marcosps

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

marcosps avatar Apr 20 '19 01:04 marcosps

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

image

on evince it works great:

image

marcosps avatar Jun 15 '23 18:06 marcosps