This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Èròjà atẹ̀lélànà yii ni a ti fi pamọ́ fọ́jọ́ pípẹ́. Jọ̀wọ́ béèrè ìbéèrè titun bí o bá nílò ìrànwọ́.

What are the units for font size in the setttings page?

  • 6 àwọn èsì
  • 1 ní ìṣòro yìí
  • 7 views
  • Èsì tí ó kẹ́hìn lọ́wọ́ Paul

more options

The settings page just shows a number, but no units as on my laptop's default font settings page. I think that they are pixels, but I'm not sure. I want to set my font sizes in points, so that the text will appear the same size on my laptop's screen as on my much larger external monitor.

The settings page just shows a number, but no units as on my laptop's default font settings page. I think that they are pixels, but I'm not sure. I want to set my font sizes in points, so that the text will appear the same size on my laptop's screen as on my much larger external monitor.
Ìsopọ̀ yíyà aṣàfihàn

All Replies (6)

more options

Hey there! I totally get where you're coming from. The font size units in the Firefox settings page are indeed pixels. But no worries, there's a trick you can use to set your font sizes in points. You can head to the "about:config" page in your Firefox browser, search for "layout.css.devPixelsPerPx," and adjust that setting to your preference. This way, your text will show up consistently across different screens. Just be careful while tweaking settings there, and remember, it's always a good idea to back up things before making changes. Hope this helps you get your fonts just right!

WARNING from the moderator team: Changing Firefox preferences from the about:config page can sometimes break Firefox or cause strange behavior. You should only do this if you know what you're doing. Please read Firefox Advanced Customization and Configuration Options to learn more.

Ti ṣàtúnṣe nípa Paul

more options

You may be able to set font sizes in points by creating a file userContent.css.

more options

The current value of layout.css.devPixelsPerPx is -1. What does "adjust that setting to your preference" mean? What (fixed) value of layout.css.devPixelsPerPx will cause Firefox to interpret the font size numbers in the settings page as points rather than pixels. A fixed ratio won't solve my problem of using the same point size on screens with different pixel densities.

more options

Hey there! You're right that the font size units in Firefox's settings page are in pixels. To make them show in points and maintain the same size on different screens, you can tweak a setting. Type "about:config" in your Firefox browser's address bar, search for "layout.css.devPixelsPerPx," and set it to a specific value (for example, 1.25). This will adjust the font sizes to your preference. Just remember, be careful with these settings and back up things before making changes. Hope this helps you achieve the font size you want!

more options

I don't see that applying a multiplier to the font sizes will help me. Every time I switch between the external monitor and the laptop's own screen, which have different pixel densities, I would have to go to the about:config page, search for "layout.css.devPixelsPerPx", and change the ratio. This isn't really any simpler than changing the font sizes in the settings page.

I think this is a design error in Firefox. With the large number of different types of screen with different sizes and pixel densities now available, pixel number isn't a useful measure of font size for users. Firefox should be using point size, as used by most other applications, and in particular the KDE system settings page. Alternatively it could give a choice of units or allow default to the system font size settings.

more options

Hi,

The people who answer questions here, for the most part, are other users volunteering their time (like me), not Mozilla employees or developers. If you want to leave feedback for developers, you can go to the Firefox Help menu and select Share ideas and feedback…. Alternatively, you can use this link. Your feedback gets collected by a team of people who read it and gather data about the most common issues.

You can also file a bug report or feature request. See File a bug report or feature request for Mozilla products for details.