Closed Bug 1554409 Opened 5 years ago Closed 5 years ago

System fonts do not scale with layout.css.devPixelsPerPx on Linux

Categories

(Core :: Widget: Gtk, defect, P5)

67 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1336558

People

(Reporter: forkest, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0

Steps to reproduce:

Set layout.css.devPixelsPerPx to a positive value other than 1.0

Actual results:

Pages content changes size, UI elements (borders, spacing) change sizes, fonts used in the UI remain of the same size.

Expected results:

The font size should scale together with the borders and spacing, like it happens on Windows.

Currently I'm using the fix from https://superuser.com/a/1332766
But now that Firefox essentially deprecates userChrome.css (Bug 1541233), the workaround may not be available in the future.

Component: Untriaged → Layout
Product: Firefox → Core

I did notice this inconsistency while working in bug 1526294. But got told that it was mostly intentional :)

That is this code, fwiw: https://searchfox.org/mozilla-central/rev/967bc2a7540a505ad31d186804bd048bb2fa3689/widget/gtk/nsLookAndFeel.cpp#825

(In reply to forkest from comment #0)

But now that Firefox essentially deprecates userChrome.css (Bug 1541233), the workaround may not be available in the future.

FWIW there's no plan to remove these as far as I can tell.

Status: UNCONFIRMED → NEW
Component: Layout → Widget: Gtk
Ever confirmed: true
See Also: → 1526294
Summary: Fonts used in the browser UI do not scale with layout.css.devPixelsPerPx on Linux → System fonts do not scale with layout.css.devPixelsPerPx on Linux

P5, the lowest priority? Does it really mean what wiki says, "We basically never want this. If somebody implements it and asks for review, we might look at it"?

I'd like to point out that this bug makes Firefox unusable on a HiDPI Linux machine.

I believe the current behavior is correct and this bug shouldn't be fixed: system fonts should be displayed at the size configured in the system. If you want your system fonts to be bigger/smaller, you should adjust your system configuration so that they're bigger/smaller. Users who change a setting that scales web content shouldn't have to accept that it makes the sizes of the text in their menus/buttons/etc. 1.5x, 2x, or 3x larger than all other apps on the system.

Oh, I now see the initially reported title.

Resolution: WONTFIX → DUPLICATE
See Also: 1336558

(In reply to David Baron :dbaron: 🏴󠁵󠁳󠁣󠁡󠁿 ⌚UTC-7 from comment #3)

Users who change a setting that scales web content shouldn't have to accept that it makes the sizes of the text in their menus/buttons/etc. 1.5x, 2x, or 3x larger than all other apps on the system.

This setting configures all the UI, it is not for web content only. All the interface (menus/buttons/etc) gets bigger or smaller except for fonts inside them. It's ugly, unusable and even broken in some cases, depending on how much you scale.

See Also: → 1726964
You need to log in before you can comment on or make changes to this bug.