Closed Bug 1851327 Opened 2 years ago Closed 1 year ago

Reader view font type controls (Sans/Serif) do not follow Firefox settings

Categories

(Toolkit :: Reader Mode, defect, P3)

Firefox 118
x86_64
Linux
defect

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: espadrine, Assigned: smaginsergey1310, NeedInfo)

References

Details

Attachments

(1 file, 1 obsolete file)

Reproductible steps:

  1. Go to about:preferences, search for "font", click on "advanced".
  2. Set the Sans Serif font to Atkinson Hyperlegible, click OK.
  3. Go to https://espadrine.github.io/blog/posts/mean-range-of-bell-curve-distributions.html
  4. Click on the Reader View button at the right of the address bar.
  5. On the left, click "Type controls", and select Sans-serif.
  6. Right-click on the text of the article; click "inspect"; click "Fonts".

What occurs:
The font “Nimbus Sans” is indicated as in use by Reader View.

What should occur:
The font Atkinson Hyperlegible should be indicated as in use.

Additional system information:

  • OS: KDE Neon 5.27 Ubuntu 22.04
  • Both Atkinson Hyperlegible and Nimbus Sans are installed.
  • CPU: Intel(R) Core(TM) i5-8350U CPU
Summary: Reader view type controls (Sans/Serif) do not follow Firefox settings → Reader view font type controls (Sans/Serif) do not follow Firefox settings
Component: General → Reader Mode
Product: Firefox → Toolkit
Severity: -- → S3
Priority: -- → P3
See Also: → 1683021

I worked around this problem by adding the following rules to chrome/userContent.css under the profile directory (which requires toolkit.legacyUserProfileCustomizations.stylesheets set to 1). Tested on Firefox 117.0.

.serif .moz-reader-content {
    font-family: serif;
}

.sans-serif .moz-reader-content {
    font-family: sans-serif;
}

Use serif, sans-serif and monospace instead of, respectively,

Georgia, "Times New Roman", serif
Helvetica, Arial, sans-serif
"Courier New", Courier, monospace

This allows browser to actually use fonts set in the font settings.

Assignee: nobody → smaginsergey1310
Attachment #9433475 - Attachment description: WIP: Bug 1851327 - Respect font settings in Reader Mode → Bug 1851327 - Follow font settings in Reader Mode
Status: NEW → ASSIGNED
Attachment #9433475 - Attachment description: Bug 1851327 - Follow font settings in Reader Mode → Bug 1851327 - Respect font settings in Reader Mode

Use serif, sans-serif and monospace instead of, respectively,

Georgia, "Times New Roman", serif
Helvetica, Arial, sans-serif
"Courier New", Courier, monospace

This allows browser to actually use fonts set in the font settings.

Attachment #9433529 - Attachment description: WIP: Bug 1851327 - Respect font settings in Reader mode → Bug 1851327 - Respect font settings in Reader mode
Attachment #9433475 - Attachment is obsolete: true
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/fc9cb1d32e78 Respect font settings in Reader mode r=reader-mode-reviewers,desktop-theme-reviewers,Gijs
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d8f04d489a4b Respect font settings in Reader mode r=reader-mode-reviewers,desktop-theme-reviewers,Gijs,emilio
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/1355c8ac3d4c Respect font settings in Reader mode r=reader-mode-reviewers,desktop-theme-reviewers,Gijs,emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch

This bug has unfortunately not been fixed for the Firefox 128.n ESR series.

Duplicate of this bug: 1683021
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: