Cannot display bold text when default font is a variable font
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr102 | --- | unaffected |
| firefox107 | --- | verified |
| firefox108 | --- | verified |
People
(Reporter: st, Assigned: jfkthame)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0
Steps to reproduce:
- Install a variable font in the operating system. I have tried with the variable version of Inter from https://github.com/rsms/inter/releases/tag/v4.0-beta7 and Recursive from https://github.com/arrowtype/recursive/releases/tag/v1.085
- Open up Firefox with a fresh profile, and visit the following URL: data:text/html,regular<b>bold
- The text "regular" is non-bold, the text "bold" is displayed in bold
- In about:preferences → General → Fonts, change the default font to "Inter" (or whatever variable font you installed)
- Switch back to the data: URL above
Actual results:
Both "regular" and "bold" are displayed in the regular weight
Expected results:
The text "bold" should still be displayed in bold, as with non-variable fonts.
This worked as expected a couple of days ago, Wednesday the 9th at the earliest.
Comment 2•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Layout: Text and Fonts' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
| Assignee | ||
Comment 3•3 years ago
|
||
Thanks for the report. I'm guessing this is almost certainly a regression from the patch in bug 1798036. I'll look into it.
Updated•3 years ago
|
| Assignee | ||
Comment 4•3 years ago
|
||
This in effect reverts bug 1798036 for desktop Linux, as the fix there
was really only needed for Android, and turns out to conflict with how
the FC-based backend handles variations.
Tested locally; currently no reftest because we cannot assume presence
of an installed variable font.
| Assignee | ||
Updated•3 years ago
|
Comment 6•3 years ago
|
||
| bugherder | ||
I can confirm the latest nightly fixes the issue for me! Thanks!
Updated•3 years ago
|
Comment 8•3 years ago
|
||
Set release status flags based on info from the regressing bug 1798036
Comment 9•3 years ago
|
||
Reproduced with nightly form 11.11.2022.
Issue is no longer reproducible on 109.0a1 Nightly from 17.11.2022.
Comment 11•3 years ago
|
||
| bugherder uplift | ||
Comment 12•3 years ago
|
||
Uplifted to 107 with Bug 1798036
Comment 13•3 years ago
|
||
Reproduced the issue with Firefox 108.0a1 (2022-11-12) on Ubuntu 20.04.3 using the data:text/html,regular<b>bold test case. After changing the font to Inter or Recursive the text bold is no longer bolded.
The issue is verified fixed with Firefox 107.0.1 on Ubuntu 20.04.3. The text bold remains bolded after the font is changed to Inter or Recursive.
Description
•