[csswg-drafts] [css-text-4] `text-spacing-trim` is harmful for Yu Gothic UI (system-ui in Japanese Windows) (#11074)

tats-u has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-text-4] `text-spacing-trim` is harmful for Yu Gothic UI (system-ui in Japanese Windows) ==
https://github.com/w3c/csswg-drafts/issues/3658#issuecomment-2411242402

`halt` in Yu Gothic UI is broken. It causes broken disastrous rendering of brackets:

https://issues.chromium.org/issues/331123676?pli=1

![e1a0b7396220-20240325](https://github.com/user-attachments/assets/718b80e0-e4af-4770-b892-de6fd69072ee)
![d589ebd147f6-20240325](https://github.com/user-attachments/assets/346e1524-fabf-4b22-b7c3-e03ae90b4843)
Images from: https://zenn.dev/inaniwaudon/scraps/f224417d4c51ee (Japanese)

![GZwtagyaAAAEbFh](https://github.com/user-attachments/assets/a3739804-110f-4c28-a212-98133898ad64)
Image from: https://twitter.com/shirouzu/status/1845400436678983704 (Japanese)

![20241012165848](https://github.com/user-attachments/assets/a19025bf-1764-467d-9948-a1c9eede83a0)
Image from: https://tawara-memo.hatenablog.com/entry/2024/10/12/174432 (Japanese)

As to https://tawara-memo.hatenablog.com/entry/2024/10/12/174432, the width of such brackets in Yu Gothic UI is 0 when `halt` is enabled. We should detect broken fonts like Yu Gothic UI by checking the width of `halt` glyphs. If its width is less than 1/4 or 1/8 of the original width, `halt` of that glyph should be treated as broken.

![image](https://github.com/user-attachments/assets/2062578a-95f5-4994-a6a0-9735b73964d0)


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11074 using your GitHub account


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

Received on Tuesday, 22 October 2024 14:59:58 UTC