-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Words become unnecessarily italic on Firefox #16760
Comments
note: lishosi does not belong to lichess |
Able to reproduce on Fedora 41. Firefox is correctly using the locally installed font instead of downloading it as per website instructions. The problem is that "Noto Sans" seems to be resolving to "Noto Sans Italic" rather than "Noto Sans Regular". |
It happens with other websites too, I think it's Firefox problem |
seems to be specific to some firefox modified linux distributions |
I am reproducing on flatpak Firefox 134 on Fedora Kinoite. The font "Noto Sans" with style The odd thing is that this doesn't happen on all sites using Noto Sans. I am only seeing it on Lichess and Lishogi. So perhaps it's an issue in combination with other CSS, or an issue with the font file. Another finding is that it shows "Font preview could not be generated" in the network tab for the font |
I am also able to reproduce this on Fedora 41 (Firefox 134.0), glad it wasn't a design decision :) See also https://discussion.fedoraproject.org/t/font-on-websites/142269 EDIT: the issue is still present on current Firefox Beta (135.0b4) and Nightly (136.0a1). |
https://github.com/lichess-org/lila/tree/master/public/font |
The issue does not occur on the previous version of the Fedora 41 I note that the "Font preview could not be generated" thing also appears on 131.0.2 though (which has no "italic" issue). So maybe this is a dead end? Does it really render on another OS? |
So we have the style
EDIT: both 131.0.2 and 134.0 reject the shipped |
Thank you for confirming this issue. I am reporting this issue to Firefox at webcompat/web-bugs#146894. |
Now being tracked here https://bugzilla.mozilla.org/show_bug.cgi?id=1941820 |
There has been an update to the fonts, if you can check |
I can confirm that the issue is now solved by #16806. |
Not a big fan of this fix, being as it ships nearly 100kb of fonts regardless of local fonts. That's fairly heavy for the rarity of the problem; all the JS on the home page is only 125kb total. This does fix the issue for me though. |
In terms of downloads, this changes nothing. The fonts were being downloaded regardless of local availability before this change. It's just rendering that preferred the local font. Don't ask me how. |
I don't think that's accurate. The code was previously this lila/ui/common/css/base/_fonts.scss Lines 90 to 98 in ddc9643
This would only fetch the webfont if the local font did not resolve. |
I know. That's why I said don't ask me how. It was the case when I was investigating via firefox dev tools. The local font specified was only used for rendering on fedora. The download went through just the same. |
Exact URL of where the bug happened
Steps to reproduce the bug
Just go to the home page. This issue is seen on various pages.
What did you expect to happen?
Chromium 131 on the same machine:
What happened instead?
Operating system
Linux (Fedora 41)
Browser and version (or alternate access method)
Firfefox 134
Additional information
No response
The text was updated successfully, but these errors were encountered: