2

My display is of 144 dpi and resolution is 1920x1080. I can see that the text in the menu bar and title bar is displayed properly; but the content is very small. Let us consider a few examples.

gmail.comgmail

Inspecting 'Mail' tells me that font size is 13px.

archlinux.org

archlinux This image clearly shows how small the content text size is. I found the text on this page has font size defined as 0.812em.

courses.csail.mit.edu

csail This website shows content in a reasonable size on my display. It has font defined as <font size="+1">.

I understand that web content can get fonts from two sources: the client system and the web. I have 144 dpi fonts installed on my system and web fonts also provide 144 dpi fonts. So, I want to know how I can make firefox use 144 dpi fonts for all content.

It is strange to me that Firefox's debugger shows fonts in reasonable size while Firebug shows fonts that are too small.

Following are two images of the same region of screen, one with firebug and the other with firefox's own debugger, for comparision.

Firefox's debugger firefox's debugger

Firebug firebug

2
  • I suspect it's this problem, have you tried Firefox 22?
    – robertc
    Commented Jul 9, 2013 at 12:30
  • I had seen that bug earlier also. I am using FF22; yet I am unable to see any automatic zoom. The fonts are too small and I have to manually zoom in.
    – dknight
    Commented Jul 10, 2013 at 19:38

2 Answers 2

2

Open about:config in Firefox and set the value of layout.css.devPixelsPerPx to -1.0.

Worked in Firefox 34.0.5.

1

In Firefox version 120.0.1 in the very end of 2023 layout.css.devPixelsPerPx also works well.

On my 4k 13 inch laptop the value is 2.5

Also works

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .