# Font sizes are different in Firefox and Chrome

**URL:** https://meta.discourse.org/t/font-sizes-are-different-in-firefox-and-chrome/362606
**Category:** Support
**Created:** [April 19, 2025, 10:43am UTC](https://meta.discourse.org/t/font-sizes-are-different-in-firefox-and-chrome/362606 "2025-04-19T10:43:45Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![pyc](https://avatars.discourse-cdn.com/v4/letter/p/8baadc/32.png) [@pyc](https://meta.discourse.org/u/pyc)
#### Post date: [April 19, 2025, 10:43am UTC](https://meta.discourse.org/t/font-sizes-are-different-in-firefox-and-chrome/362606/1 "2025-04-19T10:43:45Z")

</div>

I noticed the fonts are of different size in Firefox and Chrome. Why they are rendered differently, it shouldn’t be like that. Is that the problem in theme?

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [April 19, 2025, 1:15pm UTC](https://meta.discourse.org/t/font-sizes-are-different-in-firefox-and-chrome/362606/3 "2025-04-19T13:15:07Z")

</div>

Do you mean it’s bigger in Firefox?

If so, have you changed `layout.css.devPixelsPerPx` in the Firefox config?  
I tested, and at first glance, I could see the difference too:

 ![The image shows a Discord topic asking why fonts appear different in Firefox and Chrome, with a similar view being shown on two screens. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/7/a/4/7a445ce7d4c693f2802d54324b0975f82995da19.png)

Then, after debugging, I found out that the pixel ratio was set to 1.09 for some reason.

I don’t remember modifying it; that’s odd. To reset it:

- Type `about:config`

- Reset the config or set to 1

Now, it’s similar:

 ![The image shows side-by-side screenshots of a single chat post in a Slack and Discourse forum, highlighting the differences in UI layout and features. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/b/e/d/bedb5ef42256aee03da6fef4f5d54ce80fbabc30.png)

Is it your case as well?

---

<div class="post-metadata">

### Author: ![pyc](https://avatars.discourse-cdn.com/v4/letter/p/8baadc/32.png) [@pyc](https://meta.discourse.org/u/pyc)
#### Post date: [April 19, 2025, 2:54pm UTC](https://meta.discourse.org/t/font-sizes-are-different-in-firefox-and-chrome/362606/4 "2025-04-19T14:54:40Z")

</div>

I don’t remember changing it, but will soon check and report. Thank you.

---

<div class="post-metadata">

### Author: ![pyc](https://avatars.discourse-cdn.com/v4/letter/p/8baadc/32.png) [@pyc](https://meta.discourse.org/u/pyc)
#### Post date: [April 19, 2025, 5:08pm UTC](https://meta.discourse.org/t/font-sizes-are-different-in-firefox-and-chrome/362606/5 "2025-04-19T17:08:53Z")

</div>

OK so I checked and the value of layout.css.devPixelsPerPx is 1. Check [https://forum.liberland.org](https://forum.liberland.org), and please tell me if it’s the same in your Firefox and Chrome?

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [April 19, 2025, 5:12pm UTC](https://meta.discourse.org/t/font-sizes-are-different-in-firefox-and-chrome/362606/6 "2025-04-19T17:12:28Z")

</div>

Yes, it’s the same:

 ![A screenshot of the official Liberland Community Forum, divided into sections like Support & Inquiries, General, and Technology & Innovation, detailing topics such as policy analysis and discussions about Liberland's governance and blockchain technology. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/6/1/7/6175ba9911239b404729e998ba61ae5b10f43dcf.png)

---

<div class="post-metadata">

### Author: ![pyc](https://avatars.discourse-cdn.com/v4/letter/p/8baadc/32.png) [@pyc](https://meta.discourse.org/u/pyc)
#### Post date: [April 19, 2025, 5:35pm UTC](https://meta.discourse.org/t/font-sizes-are-different-in-firefox-and-chrome/362606/7 "2025-04-19T17:35:40Z")

</div>

So weird, I don’t know what to think. Zoom levels here are at same level…

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [April 19, 2025, 9:54pm UTC](https://meta.discourse.org/t/font-sizes-are-different-in-firefox-and-chrome/362606/8 "2025-04-19T21:54:22Z")

</div>

Can you share a screenshot of what you see, like I did above?

Also, I’m not sure if it will be helpful, but you can try checking out this simple page ([source](https://github.com/Arkshine/discourse-features-test/blob/main/font-size-diag.html)): [Browser font size diagnostics](https://arkshine.github.io/discourse-features-test/font-size-diag.html).

 ![The image displays browser information showing the Chrome 135.0.0.0 version on a Windows 10 platform, with a viewport size of 2560px width and 1305px height, and default font settings including a root font size of 16px, body font size of 16px, 96 dpi for DPI/PPI, and 24px body line height. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/9/a/a/9aa0228cae79cf1090889f5c2aa088f826f4e131.png)

It gives basic information. You could compare the data between Chrome and Firefox. Feel free to take a screenshot and share it there.

---

<div class="post-metadata">

### Author: ![pyc](https://avatars.discourse-cdn.com/v4/letter/p/8baadc/32.png) [@pyc](https://meta.discourse.org/u/pyc)
#### Post date: [April 19, 2025, 10:15pm UTC](https://meta.discourse.org/t/font-sizes-are-different-in-firefox-and-chrome/362606/9 "2025-04-19T22:15:36Z")

</div>

It was the default font size setting in Firefox which was 18, and in Chrome it was 16. I don’t remember changing it in Firefox, but probably I did. Thank you!
