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

Firefox rendering issues since 89.0 update #31294

Closed
Gottox opened this issue Jun 5, 2021 · 28 comments
Closed

Firefox rendering issues since 89.0 update #31294

Gottox opened this issue Jun 5, 2021 · 28 comments

Comments

@Gottox
Copy link
Member

Gottox commented Jun 5, 2021

The font does not resize when zooming with Ctrl++ and is much too small for hidpi displays.

Site: facebook.com

image

@Gottox
Copy link
Member Author

Gottox commented Jun 5, 2021

If I remove the font family via devtools the font is scaled correctly.

@lonwillett
Copy link
Contributor

I'm also seeing issues with a large number of websites (github included). Turning off the option "Allow pages to choose their own fonts, instead of your selections above" is my workaround, but I would like a proper fix, or at least an understanding of what is going wrong.

@egorenar
Copy link
Contributor

egorenar commented Jun 5, 2021

I have the same issue.

@marmeladema
Copy link
Contributor

Same issue for me too.
firefox_font_issue

@oreo639
Copy link
Member

oreo639 commented Jun 5, 2021

Edit: Consider reading below #31294 (comment)

What is the output of xbps-query -Rs xorg-fonts?
(If you remove xorg-fonts and all of it's dependencies, the issue should go away.)

There is also this section in the void handbook with a workaround of disabling bitmap fonts:
https://docs.voidlinux.org/config/graphical-session/fonts.html

@Gottox
Copy link
Member Author

Gottox commented Jun 5, 2021


Deleted, I had my 5 minutes again 🙄


@Gottox
Copy link
Member Author

Gottox commented Jun 5, 2021

@lonwillett @marmeladema github is actually fine for me.

@Gottox
Copy link
Member Author

Gottox commented Jun 5, 2021

workaround:

xbps-remove font-adobe-100dpi font-adobe-75dpi xorg-fonts

@meator
Copy link
Contributor

meator commented Jun 5, 2021

I have the same issue, everything was fine before I upgraded firefox to version 89. My github is messed up too.

@lonwillett
Copy link
Contributor

What is the output of xbps-query -Rs xorg-fonts?

[*] xorg-fonts-7.6_5 Modular Xorg Fonts

Hasn't this been an issue for a long while?

It's new with ff 89 for me. Where I've looked, it seems like some of the fonts from font-adobe-* don't work; and probably others.

(If you remove xorg-fonts and all of it's dependencies, the issue should go away.)

This section was added to the void handbook specifically because of this issue:
https://docs.voidlinux.org/config/graphical-session/fonts.html

That does seem to work; i.e. disabling bitmap fonts with fontconfig; i.e. enabling the 70-no-bitmaps.conf for fontconfig. Although it seems like a bit of a heavy-handed kludge. (Or it should be the default configuration).

@egorenar
Copy link
Contributor

egorenar commented Jun 5, 2021

What is the output of xbps-query -Rs xorg-fonts?
Hasn't this been an issue for a long while?
(If you remove xorg-fonts and all of it's dependencies, the issue should go away.)

This section was added to the void handbook specifically because of this issue:
https://docs.voidlinux.org/config/graphical-session/fonts.html

Thanks, this helps.

@hervyqa
Copy link
Contributor

hervyqa commented Jun 7, 2021

Guys, try this at home

ln -sf /usr/share/fontconfig/conf.avail/10-hinting-slight.conf /etc/fonts/conf.d/
ln -sf /usr/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf /etc/fonts/conf.d/
ln -sf /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf /etc/fonts/conf.d/
ln -sf /usr/share/fontconfig/conf.avail/50-user.conf /etc/fonts/conf.d/
ln -sf /usr/share/fontconfig/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d/

@stnby
Copy link
Contributor

stnby commented Jun 9, 2021

Can we guys revert this broken version of Firefox back?

@Duncaen
Copy link
Member

Duncaen commented Jun 9, 2021

Can we guys revert this broken version of Firefox back?

No, this version fixes security issues we are not going to revert a browsers version because some font setups are broken.

@PurpleVsGreen
Copy link

I put this in userContent.css:

@font-face {
	font-family: Courier;
	src: local("DejaVu Sans Mono");
}

@font-face {
	font-family: Helvetica;
	src: local("DejaVu Sans");
}

@font-face {
	font-family: Times;
	src: local("DejaVu Serif");
}

It goes in a (new) directory called chrome (lol) inside the FF profile directory. It can be opened with a button in about:support. In about:config, toolkit.legacyUserProfileCustomizations.stylesheets has to be true.

@stnby
Copy link
Contributor

stnby commented Jun 11, 2021

Can we guys revert this broken version of Firefox back?

No, this version fixes security issues we are not going to revert a browsers version because some font setups are broken.

I can't even read your reply on that browser :D

@arp242
Copy link
Contributor

arp242 commented Jun 15, 2021

Also see: #25584

Installing the fixed fonts generally causes issues because some software may select them with the font selection wizandry, and has for years. It's not really a new issue or unique to Firefox 89 as such, although Firefox probably could fix it, it'll probably break somewhere sooner or later again.

I'm not sure if installing them by default in xorg/xorg-fonts is still a good default, as was mentioned in the other issue. Maybe some old stuff like xeyes or whatnot might break though, but I doubt many people will care and we can add dependencies if need be. There's also some other stuff like xterm that's a bit more common; I don't know what its defaults are these days.

Either way, doing some work on that seems like the best long-term fix.

@arp242
Copy link
Contributor

arp242 commented Jun 15, 2021

And another: #16573

@Unixware
Copy link

just FYI there is no such issue with the dev version of the firefox (version 90)..

@Duncaen
Copy link
Member

Duncaen commented Jun 16, 2021

just FYI there is no such issue with the dev version of the firefox (version 90)..

Is this actually comparable because you've build it with the same system dependencies void uses or does it mozillas binary that statically links a lot of things?

@Unixware
Copy link

nope its the one from Mozilla...

@sirn
Copy link
Contributor

sirn commented Jun 20, 2021

For anyone getting this issue after 89.0, this seems to be a regression in Firefox upstream caused by a new default. Turning off gfx.e10s.font-list.shared fixed the issue in my case. This would still use bitmap Helvetica font if it's installed and used at certain font size, but it will now scale properly. See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1714318

@HadetTheUndying
Copy link
Contributor

gfx.e10s.font-list.shared

How do i get to this setting as I can't find it by searching in Firefox's search in settings?

@Duncaen
Copy link
Member

Duncaen commented Jun 20, 2021

about:config

@mtbc
Copy link
Contributor

mtbc commented Jun 21, 2021

Looks to be fixed in 89.0.1 - https://bugzilla.mozilla.org/show_bug.cgi?id=1714282
Sorry if I missed something in above discussion, it's too tiny for me to read!

@ahesford
Copy link
Member

Is this matter resolved with newer Firefox packages?

@stnby
Copy link
Contributor

stnby commented Aug 2, 2021

Is this matter resolved with newer Firefox packages?

Seems like, we can probably close this issue.

@StreetStrider
Copy link

It happens for me today. The solution was to disable bitmap fonts as described here: https://www.reddit.com/r/voidlinux/comments/fa9wyk/solution_for_non_antialiased_fonts_in_firefox_and/

ln -s /usr/share/fontconfig/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d/70-no-bitmaps.conf
fc-cache -fv

@void-linux void-linux locked as resolved and limited conversation to collaborators Jul 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests