Bug 258293 - www/firefox (1729109) The preferred default font is no longer used, for some sites, following an upgrade from Firefox 91.0.2
Summary: www/firefox (1729109) The preferred default font is no longer used, for some ...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-gecko (Nobody)
URL: https://bugzilla.mozilla.org/show_bug...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-05 19:15 UTC by Graham Perrin
Modified: 2024-01-15 20:28 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (gecko)
jbeich: maintainer-feedback? (kde)


Attachments
Screenshot: firefox-esr-78.14.0,1 on FreeBSD 13.0-RELEASE-p4 (241.48 KB, image/png)
2021-09-22 06:12 UTC, Graham Perrin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin freebsd_committer freebsd_triage 2021-09-05 19:15:35 UTC
Originally reported as <https://bugzilla.mozilla.org/show_bug.cgi?id=1729109> bugging two installations of FreeBSD (14.0-CURRENT, 13.0-RELEASE-p4) … 

… I'm not yet able to make it reproducible with betas of Firefox 92 on Linux. 

The screen recording at <https://bugzilla.mozilla.org/show_bug.cgi?id=1729109#c4> might be the best introduction to this bug; note the appearance of Comic Neue (not preferred by Firefox) in the Firefox view of the GitHub page.
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2021-09-05 19:33:26 UTC
In the Firefox subreddit, <https://old.reddit.com/r/firefox/comments/phhvve/-/> was posted around forty-two hours ago with the intention of discovering whether any Linux user can reproduce the bug. It passed moderation, however it remains _invisible_ (not found at <https://old.reddit.com/r/firefox/new/>). 

<https://old.reddit.com/r/freebsd/comments/pijgss/-/> and cross-post <https://old.reddit.com/r/kde/comments/pijjpk/-/> draw attention in the FreeBSD and KDE subreddits.
Comment 2 Jan Beich freebsd_committer freebsd_triage 2021-09-05 21:24:58 UTC
How does Plasma store System Settings -> Appearance -> Global Theme -> Fonts preferences? fonts-conf(5), gsettings or something else? I'd like to reproduce outside of KDE.

$ fc-match mono
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
$ fc-match sans
DejaVuSans.ttf: "DejaVu Sans" "Book"
$ fc-match serif
DejaVuSerif.ttf: "DejaVu Serif" "Book"
$ fc-match -v | fgrep hint
        hintstyle: 1(i)(w)
        hinting: True(s)
        autohint: False(s)
        fonthashint: True(w)

$ gsettings list-recursively | fgrep font
org.gnome.desktop.wm.preferences titlebar-uses-system-font true
org.gnome.desktop.wm.preferences titlebar-font 'Cantarell Bold 11'
org.gnome.desktop.interface font-antialiasing 'grayscale'
org.gnome.desktop.interface monospace-font-name 'Source Code Pro 10'
org.gnome.desktop.interface document-font-name 'Cantarell 11'
org.gnome.desktop.interface font-hinting 'slight'
org.gnome.desktop.interface font-rgba-order 'rgb'
org.gnome.desktop.interface font-name 'Cantarell 11'
Comment 3 Sean Farley freebsd_committer freebsd_triage 2021-09-08 23:16:14 UTC
It is possibly the new support in Firefox of the `system-ui` font:  https://bugzilla.mozilla.org/show_bug.cgi?id=1226042

For me, it defaults to the `Cantarell` family:

  $ fc-match ':family=system-ui'
  Cantarell-Regular.ttf: "Cantarell" "Regular"

My "fix" was to associate `system-ui` with another font family in ~/.config/fontconfig/fonts.conf:  

<fontconfig>
...
	<alias>
		<family>system-ui</family>
		<prefer>
			<family>Liberation Sans</family>
		</prefer>
	</alias>

...
</fontconfig>

I use only a window manger, so there is, or should be, nothing else involved.

A couple more bugs that may be useful:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1545745
- https://bugzilla.mozilla.org/show_bug.cgi?id=1728086
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2021-09-22 05:07:12 UTC
(In reply to Graham Perrin from comment #0)

> … bugging two installations of FreeBSD (14.0-CURRENT, 13.0-RELEASE-p4) …

At the time of writing, I can no longer reproduce the issue on 14.0-CURRENT. 

% date 
Wed 22 Sep 2021 05:59:07 BST
% pkg info -x firefox fontconfig google-fonts | sort
firefox-92.0_2,2
fontconfig-2.13.94_1,1
google-fonts-0.0.0.20210120
linux-c7-fontconfig-2.13.0
% uname -aKU
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #109 main-n249408-ff33e5c83fa: Thu Sep 16 01:11:04  2021     root@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG  amd64 1400033 1400033
% 

----

I'll review in a 13.0-RELEASE-p4 environment.
Comment 5 Graham Perrin freebsd_committer freebsd_triage 2021-09-22 06:12:02 UTC
Created attachment 228115 [details]
Screenshot: firefox-esr-78.14.0,1 on FreeBSD 13.0-RELEASE-p4

(In reply to Graham Perrin from comment #4)

> I'll review in a 13.0-RELEASE-p4 environment.

Reproducible with: 

* firefox-esr-78.14.0,1 (pictured)

* firefox-92.0_2,2
Comment 6 Schriftarten io 2023-05-20 03:07:39 UTC
MARKED AS SPAM