Re: [csswg-drafts] [css-fonts] `system-ui` behavior is undesired for some users (#3658)

@NightFurySL2001 

I'm aware the other aspects of this issue as you mentioned, and I'm pretty sure OP being an expert in CJK field, knows it better than both of us. But let's back the topic: I don't agree with you that MS YaHei is "not terrible"; it's too wide compared to majority of English typefaces. 

Regardless, it being "enlarged" alone is already a serious drawback since the designers of the sites often have a fixed (perceptive) font size in their mind. Let's put it this way: if English users see the font in that size is expected, why Chinese users (when *seeing the same English content*) would need something different?

> Using `sans-serif` does not come with this benefit as it uses the default font fallback regardless of system locale settings, which on Windows prioritise Japanese over Chinese and leading to more issues than of broken Latin text. 

Totally false. Did you even test it? Firefox and Chrome have slightly different fallback mechanics [1] in this regard, but both will fallback to Chinese version glyphs on a Chinese Windows. It even works with Chinese Windows with browsers in English display language. 

Chrome: 
![image](https://user-images.githubusercontent.com/4130991/192632135-9dd1a71e-d3c3-43a6-b4dd-534d097ab094.png)
Firefox:
![image](https://user-images.githubusercontent.com/4130991/192632265-689bc512-1b75-414e-a9ca-826ce7e8e1d5.png)

Chrome is even better when using `sans-serif`, because it uses Meiryo to display kanas. Firefox on the other hand, will use heuristics to guess the language of un-tagged content and use that for the whole page instead, it is not a glyph-by-glyph process.

<details>
  <summary>Footnote</summary>

[1] On chrome, make sure you set Chinese priority higher than Japanese. Which is the default if you use Chinese version Chrome.
![image](https://user-images.githubusercontent.com/4130991/192632440-4e878140-d5fc-4e63-911a-b4eadac7c486.png)
</details>

> Ignore this point if your website has correct language tagging: <html lang="zh-hans">/zh-hant/ja will fix the font for sans-serif most of the time. If your (or user-generated) content does not have any language information, system-ui is the better bet for localization.

Funny you mentioned lang tagging. This is one of THE worst issue of system-ui, actually, other than being ugly. 

*Even if you tag it with `<lang="ja>`*, it will still use MS YaHei font if you use system-ui. See the screenshots above.





-- 
GitHub Notification of comment by fireattack
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3658#issuecomment-1260048591 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 27 September 2022 21:00:46 UTC