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: New
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...
Depends on:
Reported: 2021-09-05 19:15 UTC by Graham Perrin
Modified: 2021-09-08 23:16 UTC (History)
4 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin 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 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 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 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:  

			<family>Liberation Sans</family>


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