Closed Bug 1773856 Opened 3 years ago Closed 3 years ago

macOS document fonts not detected

Categories

(Core :: Widget: Cocoa, defect)

Firefox 101
defect

Tracking

()

RESOLVED DUPLICATE of bug 1743170

People

(Reporter: jmsharvey771, Unassigned)

References

Details

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

Steps to reproduce:

Given the following HTML:

<html><head></head><body><p style="font-family: 'Hiragino Kaku Gothic Pro', sans-serif">言葉</p></body></html>

view the font of the text element

Actual results:

Firefox used Hiragino Sans

Expected results:

Firefox should have used Hiragino Kaku Gothic Pro

I'd like to have a go at fixing this myself, but the Firefox source code is a bit overwhelming. Some pointers as to where Firefox gets fonts from the OS would be helpful :)

Some futher information - "document fonts" are fonts that are not technically included in macOS but will still be available if the application requests them.

https://developer.apple.com/fonts/system-fonts/
https://support.apple.com/en-gb/HT212587

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

Component: Untriaged → Widget: Cocoa
Product: Firefox → Core

Is this a recent regression? If not sure, could you verify using mozregression?

Flags: needinfo?(jmsharvey771)

This is not a recent regression. As far as I know, this has never worked.

Flags: needinfo?(jmsharvey771)

Bug 1743170 makes me think that this might be working in Nightly. Could you verify?

Flags: needinfo?(jmsharvey771)
See Also: → 1743170

(In reply to jmsharvey771 from comment #0)

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

you are using Firefox 101, but specified patches are only merged into 102 and not backported. might be it is a reason? (ignore if you are testing on 102)

(In reply to jmsharvey771 from comment #5)

This is not a recent regression. As far as I know, this has never worked.

Are you using an Apple Silicon-based Mac? I believe this never worked in Apple Silicon (ARM) builds of Firefox until bug 1743170, which as rinsuki notes, was recently fixed for Firefox 102.

Just tested on Nightly and it picked the right font, I'll mark this as a duplicate :)

(Also, yes I'm on Apple Silicon)

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Flags: needinfo?(jmsharvey771)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.