Vyhľadajte odpoveď

Vyhnite sa podvodom s podporou. Nikdy vás nebudeme žiadať, aby ste zavolali alebo poslali SMS na telefónne číslo alebo zdieľali osobné informácie. Nahláste prosím podozrivú aktivitu použitím voľby “Nahlásiť zneužitie”.

Ďalšie informácie

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

  • 6 odpovedí
  • 1 má tento problém
  • 11 zobrazení
  • Posledná odpoveď od 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.
Priložené obrázky

Všetky odpovede (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.

Upravil(a) Paul dňa

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.