Closed Bug 1774798 Opened 3 years ago Closed 2 years ago

Make Firefox use font-size specified in webpage

Categories

(Core :: Layout: Text and Fonts, defect)

Firefox 101
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: richard.j.e.cooke, Unassigned)

Details

Steps to reproduce:

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

Note that the default font size in both my browser settings is set to 16.

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.

Component: Untriaged → Layout: Text and Fonts
Product: Firefox → Core

What is window.devicePixelRatio in Firefox and Chrome? Can you attach a screenshot? I'm not seeing comment 0.

Flags: needinfo?(richard.j.e.cooke)

(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.

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.

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.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(richard.j.e.cooke)
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.