Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marcosps opened this issue Dec 18, 2018 · 12 comments
Open

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

marcosps opened this issue Dec 18, 2018 · 12 comments

Comments

@marcosps
Copy link

Mentioning a bug from mozilla/pdf.js#10352

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

@marcosps
Copy link
Author

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

@xhorak
Copy link
Owner

xhorak commented Jan 10, 2019

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
Copy link
Owner

xhorak commented Jan 10, 2019

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

@marcosps
Copy link
Author

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
Copy link
Author

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
Copy link
Author

marcosps commented Jan 18, 2019

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

@marcosps
Copy link
Author

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

@marcosps
Copy link
Author

@thebitstick
Copy link

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

@marcosps
Copy link
Author

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

@marcosps
Copy link
Author

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

@marcosps
Copy link
Author

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

image

on evince it works great:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants