macOS document fonts not detected
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
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
Reporter | ||
Comment 1•3 years ago
|
||
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 :)
Reporter | ||
Comment 2•3 years ago
|
||
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
Comment 3•3 years ago
|
||
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.
Comment 4•3 years ago
|
||
Is this a recent regression? If not sure, could you verify using mozregression?
Reporter | ||
Comment 5•3 years ago
|
||
This is not a recent regression. As far as I know, this has never worked.
Comment 6•3 years ago
|
||
Bug 1743170 makes me think that this might be working in Nightly. Could you verify?
(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)
Comment 8•3 years ago
|
||
(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.
Reporter | ||
Comment 9•3 years ago
|
||
Just tested on Nightly and it picked the right font, I'll mark this as a duplicate :)
(Also, yes I'm on Apple Silicon)
Description
•