The macOS Japanese monospace font Osaka-Mono is not available when shared font-list is enabled
Categories
(Core :: Layout: Text and Fonts, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: jfkthame, Assigned: jfkthame)
References
Details
Attachments
(1 file)
This font is "special" in that the monospaced face is included in the Osaka font family, but in order to be able to configure it as the default monospace font for Japanese, we need to expose it as a separate font-family name.
The pref "font.single-face-list" exists to support this, but currently the macOS backend for the shared font-list code doesn't handle this pref, and so monospace doesn't work properly in Japanese; we just get a fallback font.
Assignee | ||
Comment 1•5 years ago
|
||
Fortunately, we have a fairly straightforward way to support this: the shared font list already implements an "alias" mechanism to allow additional family names to refer to specific faces, which is used to support families with localized names, as well as legacy family names like "Arial Narrow" that refers to an individual face within the Arial family.
So we can treat Osaka-mono similarly: we'll read the font.single-face-list pref, just like the old font-list code does, and set up an alias record for this face (or any other that might happen to be listed, although I doubt this pref has ever been used for anything else).
(The effect of this bug can be seen, for example, in about:memory when running in a Japanese environment: the main content of the report uses <pre>
elements, which are styled with font-family:monospace
in the UA stylesheet, but because the Osaka-mono "family" isn't recognized, we end up with a default fallback font instead. We can't really do an automated test, though, as the Osaka font isn't present by default on non-Japanese installations.)
Assignee | ||
Comment 2•5 years ago
|
||
Comment 4•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Updated•5 years ago
|
Description
•