Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

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

  • 6 답장
  • 1 이 문제를 만남
  • 7 보기
  • 최종 답변자: 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.
첨부된 스크린샷

모든 댓글 (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.

글쓴이 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.