https://bugzilla.redhat.com/show_bug.cgi?id=2062386
Bug ID: 2062386 Summary: strange font priorities in Firefox Product: Fedora Version: 35 Hardware: x86_64 OS: Linux Status: NEW Component: Fonts Assignee: i18n-b...@lists.fedoraproject.org Reporter: skyfal...@gmail.com QA Contact: fonts-bugs@lists.fedoraproject.org Target Milestone: --- Classification: Fedora Description of problem: Sometimes, when using a native font stack in CSS on a web page, fonts that are not in the font stack at all are substituted for the desired fonts. This only seems to affect web pages viewed using: - Fedora (not Ubuntu, Debian 11, or Manjaro) - Firefox (not Chrome or Chromium) - When using the RPM version or Mozilla's official build from their website (not the Flatpak) Happens in the stable version of Firefox, Firefox Beta, and Firefox nightly. Two substitutions I've identified so far: - Droid Sans is substituted for Open Sans - P052 is substituted for 'URW Palladio L' or Palatino Substituting for Palatino may be less objectionable, since that's a generic choice, but URW Palladio L is rather specific and it's surprising to see the substitution. This also wouldn't be as objectionable if the font substitutions were better. Droid Sans doesn't look much like Open Sans at all, and P052 looks really ugly (it has unevenly sized letters). In Firefox Flatpak, it instead substitutes the better-looking 'TeX Gyre Pagella', and only does that for Palatino, not for 'URW Palladio L' (which was higher priority in my font stack). This is more desirable behavior. The source of the problem seems to be that if you run the following command: fc-match :family="Open Sans" It returns Droid Sans. Possibly related bugs: https://bugzilla.redhat.com/show_bug.cgi?id=1820166 https://bugzilla.mozilla.org/show_bug.cgi?id=1406790 How reproducible: Consistently Steps to Reproduce: 1. Open a clean Fedora 35 install, and verify that Open Sans is not installed. 2. Create the following web page and view it in a browser: ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <style> h1,h2,h3,h4 { font-family: Open Sans, Fira Sans; } </style> </head> <body> <h1>Hello World</h1> <p>Lorem ipsum dolor sit amet.</p> </body> </html> ``` Alternately, view a real live (but more complex) website at https://www.maximumethics.dev/ Actual results: Notice that the text on the webpage is displayed in Droid Sans, not Open Sans. Expected results: The webpage displays the next available font in the font stack, Fira Sans in this case, or the browser's default font if you don't have Fira Sans. -- You are receiving this mail because: You are the QA Contact for the bug. https://bugzilla.redhat.com/show_bug.cgi?id=2062386 _______________________________________________ fonts-bugs mailing list -- fonts-bugs@lists.fedoraproject.org To unsubscribe send an email to fonts-bugs-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/fonts-bugs@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure