Closed Bug 1802957 Opened 1 year ago Closed 1 year ago

Add preferences to override system fonts

Categories

(Core :: Widget, task, P3)

task

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: emilio, Assigned: emilio)

Details

Attachments

(3 files)

Much like we have preferences to override ints / floats / colors here, it seems having prefs for fonts would be useful (if only for testing without having to change system settings).

Flags: needinfo?(emilio)

And hide internal but used values. System fonts are not exposed in the
computed style so this should be fine.

If we need the old values for some obscure reason, it's trivial to alias
them to e.g., menu or so.

Now that the non-native theme is everywhere, let's do this consistently
across platforms.

Note that these fonts aren't used for XUL anyways, so this shouldn't
change behavior in practice.

Depends on D163269

Much like we allow to do so with colors and ints/floats.

Read a string pref for the font name, and a few float/bools for
size/weight/italic, which is what our LookAndFeel back-end supports.

Depends on D163270

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ffe8d999e454
Remove non-standard and unused system font values. r=jfkthame
https://hg.mozilla.org/integration/autoland/rev/60822417a838
Remove windows-specific condition for system font font-size adjustment. r=jfkthame
https://hg.mozilla.org/integration/autoland/rev/649c190f6c29
Allow to specify system fonts via prefs. r=jfkthame

Backed out 3 changesets (Bug 1802957) for causing mochitest failures on test_unstyled_control_height.html.
Backout link
Push with failures <--> 3
Failure Log

Flags: needinfo?(emilio)
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f331a560b37c
Remove non-standard and unused system font values. r=jfkthame
https://hg.mozilla.org/integration/autoland/rev/5fd98b1efb0a
Remove windows-specific condition for system font font-size adjustment. r=jfkthame
https://hg.mozilla.org/integration/autoland/rev/f1cdc72ea3d3
Allow to specify system fonts via prefs. r=jfkthame
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: