Closed Bug 1715898 Opened 4 years ago Closed 4 years ago

in macOS 12, If system primary language is not english, incorrect font will be used to -apple-system

Categories

(Core :: Layout: Text and Fonts, defect)

Firefox 91
defect

Tracking

()

RESOLVED DUPLICATE of bug 1732629

People

(Reporter: 428rinsuki+bugzilla.mozilla.org, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0

Steps to reproduce:

  1. Install macOS 12 Monterey beta
  2. Set system primary language to not English (e.g. Japanese) and Restart macOS
  3. Open Firefox and Visit some sites that using system-ui (e.g. Twitter)

Actual results:

incorrect font will be used to system-ui. bolds are not available, and character width is narrow.
but DevTools saying "it using System Font (.SF NS)".

Expected results:

actual System UI Font should be used to system-ui whatever system primary language is english or not. this is macOS 11 or older behaviour.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Cocoa' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Widget: Cocoa
Product: Firefox → Core
Component: Widget: Cocoa → Layout: Text and Fonts

Firefox doesn't yet implement the system-ui name at all (that's bug 1226042). What twitter actually uses, according to what I see in the Inspector, is a font-family list that starts with -apple-system; so that is presumably what is being handled poorly here.

Currently -apple-system is mapped to a specific font family name, and does not account for the use of different system fonts for different languages. See bug 1226042 comment 18 for more on what we need to do here.

Severity: -- → S2

We should probably map -apple-system to system-ui when we get to implement it.

Status: UNCONFIRMED → NEW
Depends on: 1226042
Ever confirmed: true

(In reply to rinsuki from comment #0)

actual System UI Font should be used to system-ui whatever system primary language is english or not. this is macOS 11 or older behaviour.

Could you clarify what specifically is different on macOS 12 vs 11? (for the benefit of whoever ends up investigating/implementing this, to be sure we're testing properly)

(If I'm understanding you correctly, it sounds like maybe you were saying the system primary language can be changed in version 12 but not 11?)

Flags: needinfo?(428rinsuki+bugzilla.mozilla.org)

(In reply to Daniel Holbert [:dholbert] from comment #4)

Could you clarify what specifically is different on macOS 12 vs 11? (for the benefit of whoever ends up investigating/implementing this, to be sure we're testing properly)

(If I'm understanding you correctly, it sounds like maybe you were saying the system primary language can be changed in version 12 but not 11?)

first, I said "system-ui" before, but that is actually -apple-system. sorry for inconvenience.

font-family: -apple-system selected font is different on macOS 12 vs 11 (only If system language is not English).

in macOS 11 (or older), system font is always used by font-family: -apple-system. thats fine.

but in macOS 12 beta, If system language is not English (or maybe Japanese only issue?), unknown (not system) font is used by font-family: -apple-system. If system language is English, system font is used by font-family: -apple-system even macOS 12.

also I have a table:

macOS Version System Primary Language result of font-family: -apple-system
macOS 11.x (tested at 11.4) English system font
macOS 11.x (tested at 11.4) Japanese system font
macOS 12.0 beta 1 to 3 English system font
macOS 12.0 beta 1 to 3 Japanese incorrect unknown font (bolds are not available, and character width is narrow)
Flags: needinfo?(428rinsuki+bugzilla.mozilla.org)
Summary: in macOS 12, If system primary language is not english, incorrect font will be used to system-ui → in macOS 12, If system primary language is not english, incorrect font will be used to -apple-system

This bug also affects me as a German user. I don't have bold fonts right now as well. So add German to the list

See Also: → 1732629

this bug is same as bug 1732629, and it is fixed.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.