Open Bug 1833164 Opened 1 year ago Updated 1 year ago

ui.textScaleFactor does not scale the browser chrome text independently of the system and UI scale like font.size.systemfontscale on Linux.

Categories

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

Firefox 115
defect

Tracking

()

REOPENED
Tracking Status
firefox-esr102 --- unaffected
firefox113 --- unaffected
firefox114 --- unaffected
firefox115 --- fix-optional

People

(Reporter: ke5trel, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

STR:

  1. Create pref ui.textScaleFactor = 150 on Nightly 115.0a1 (2023-05-14), Ubuntu 23.04.
  2. Compare with font.size.systemfontscale = 150 on Nightly 115.0a1 (2023-05-11).

font.size.systemfontscale scaled only the text and made no exceptions.

ui.textScaleFactor does not scale browser chrome text as it gets overridden by the system setting /org/gnome/desktop/interface/font-name and instead scales the whole UI like layout.css.devPixelsPerPx. It is no longer possible to independently scale the text in the UI with the removal of font.size.systemfontscale.

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=8ef61663212db748a7427b0f07fd6b5af28d0fa1&tochange=0b47bd87aa7734f9d1e459c608a0accfd94270ad

Regressed by Bug 1831136.

There is tho. browser.display.os-zoom-behavior tweaks the behavior of the OS text scale.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID

browser.display.os-zoom-behavior = 2 only produces the desired result when used in combination with /org/gnome/desktop/interface/text-scaling-factor. It cannot be overridden or applied directly with ui.textScaleFactor, all it does is make the content scale larger.

Status: RESOLVED → REOPENED
Resolution: INVALID → ---

:emilio any follow-up on this? Could you set the priority/severity?

Flags: needinfo?(emilio)

So the not accounting for the pref is intentional, see bug 1777902.

This is fairly low priority (we removed a pref that wasn't exposed in the UI). If we want to restore this functionality we could add an extra pref to the system font code to divide only by the native scale rather than accounting for the pref (effectively reverting https://hg.mozilla.org/integration/autoland/rev/68ec3d16cb3f).

I guess with bug 1777902 there isn't a great way of adjusting system font sizes and content font sizes unfortunately.

Severity: -- → S3
Flags: needinfo?(emilio)
Priority: -- → P3
See Also: → 1777902
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: