Closed Bug 1720493 Opened 3 years ago Closed 3 years ago

[mac] kBaseFonts: Osaka-Mono

Categories

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

Firefox 92
Desktop
macOS
defect

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: thorin, Assigned: jfkthame)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

spin off from Bug 1720408

STR

Component: Untriaged → Layout: Text and Fonts
OS: Unspecified → macOS
Product: Firefox → Core
Hardware: Unspecified → Desktop
Version: 78 Branch → Firefox 92

Osaka-Mono is a special case, as in the current macOS font configuration it is not really a font-family name in its own right (it's a face in the Osaka family, but not accessible as such via CSS font selection properties). We expose it as a separate family mostly for legacy reasons; it used to be a default font used on macOS, and some sites may explicitly request it.

This is handled via the font.single-face-list pref, which lists any such instances where a specific face is to be exposed as a separate family (currently Osaka-Mono is the only case). It turns out there are two bugs in how this is handled that affect the behavior here:

(a) the visibility attribute is not propagated from the Osaka family to its Osaka-Mono "child", so we don't have the correct visibility level for it; and

(b) if the font list gets reinitialized, we'll fail to set up Osaka-Mono at all in the new list because the strings in the mSingleFaceFonts array actually got munged the first time it was used.

(The latter was a regression from bug 1708768; prior to that, we just re-read the pref rather than stashing it in an array for future use.)

Assignee: nobody → jfkthame
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c3b26515aa94 Fix handling of font.single-face-list in the macOS font list. r=lsalzman
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: