Closed Bug 1586218 Opened 6 years ago Closed 6 years ago

Bad default font selection for Mongolian script on macOS

Categories

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

Desktop
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: hsivonen, Assigned: jfkthame)

References

()

Details

Attachments

(1 file)

Steps to reproduce

  1. Navigate to https://florian.rivoal.net/csswg/rare-lang/ in Nightly on macOS Mojave.
  2. Navigate to https://florian.rivoal.net/csswg/rare-lang/ in Nightly on Android.

Actual results

The example on the left renders with tiny isolated glyphs on macOS. The font in use is STHeiti.

On Android, the example on the left renders similarly to @font-face the example on the right. I expect the font that's used on Android to be Noto Sans Mongolian.

Expected results

Since macOS ships Noto Sans Mongolian, expected it to be used instead of the various other macOS-bundled fonts that provide isolated glyphs for the Mongolian script but don't support proper joining behavior.

Additional info

I'd be unsurprised if the same issue affected other scripts. Chances are that the macOS-shipped Noto fonts should be higher up in the fallback order generally, since it seems that the scripts that macOS ships a Noto font for aren't properly supported by other fonts bundled with macOS.

The priority flag is not set for this bug.
:boris, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(boris.chiou)

Yeah, this is pretty bad. I see that STHeiti is set as the default fallback for the Mongolian range in gfxPlatformMac.cpp, but it really isn't very useful. IIRC that was probably generated by jdaggett based on inventories of character coverage, but didn't take account of the fact that the font doesn't actually shape properly. (Also, I think the font assignments there predate Apple's inclusion of various Noto fonts with the OS, so there wasn't necessarily a better option available.)

Anyhow, we should just change this.

Assignee: nobody → jfkthame
Flags: needinfo?(boris.chiou)
Priority: -- → P3
Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/46e21a147055 Use a better default fallback font for Mongolian on macOS. r=jwatt
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: