Make Firefox use font-size specified in webpage
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
People
(Reporter: richard.j.e.cooke, Unassigned)
Details
Steps to reproduce:
- Ensure that Firefox settings has "Allow pages to choose their own fonts, instead of your selections above" set to true.
- Open any page in Firefox and Chrome, for instance https://www.w3schools.com/cssref/pr_font_font-size.asp
Actual results:
The Firefox page has smaller fonts than the Chrome one. Even though in the inspector the font-size is given as the same font size as in Chrome, it's visually smaller.
Expected results:
The fonts should be the same size
Reporter | ||
Comment 1•3 years ago
|
||
Note that the default font size in both my browser settings is set to 16.
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.
Comment 3•3 years ago
|
||
What is window.devicePixelRatio
in Firefox and Chrome? Can you attach a screenshot? I'm not seeing comment 0.
Comment 4•3 years ago
•
|
||
(Drive-by, as I noticed writing a test case) Chrome indicates Times New Roman
for rendered fonts, where Firefox indicates DejaVu Serif
. Forcing font-family
to Times New Roman
on Firefox or DejaVu Serif
on Chrome generate comparable results.
Comment 5•3 years ago
•
|
||
I also don't see the described behavior.
The bug report seems to be focusing on how Firefox and Chrome are rendering differently-sized text despite being given the same font-size
(e.g. at w3schools) -- but that's not particularly notable unless the text is rendered in exactly the same font.
Different fonts have (somewhat) differently-sized text even using the same font-size. So, most likely, your Firefox and Chrome installations are just choosing different fonts here (in a scenario where a website doesn't provide a web-font or force a named font that you have available locally).
If you see this issue at the front-page of https://fonts.google.com (which uses web-fonts and hence should make consistent font-choices regardless of browser -- using the fonts provided by the site itself), then that could indeed be an indication of a bug with Firefox rendering text at the wrong size. But otherwise, this seems likely to be just a behavioral difference on which-font-to-use when the browser is forced to make a choice.
If you could post a screenshot of the issue (Firefox vs. Chrome rendering the same content at different sizes), that would help confirm whether that really is the explanation or not.
Comment 6•2 years ago
|
||
A needinfo is requested from the reporter, however, the reporter is inactive on Bugzilla. Closing the bug as incomplete.
For more information, please visit BugBot documentation.
Description
•