Description
halt
in Yu Gothic UI is broken. It causes broken disastrous rendering of brackets:
https://issues.chromium.org/issues/331123676?pli=1
https://twitter.com/search?q=https%3A%2F%2Ftawara-memo.hatenablog.com%2Fentry%2F2024%2F10%2F12%2F174432&src=typed_query
https://b.hatena.ne.jp/entry/s/tawara-memo.hatenablog.com/entry/2024/10/12/174432
https://twitter.com/shirouzu/status/1845400436678983704/quotes
https://twitter.com/tawara_san/status/1845023105288372415/quotes
Images from: https://zenn.dev/inaniwaudon/scraps/f224417d4c51ee (Japanese)
Image from: https://twitter.com/shirouzu/status/1845400436678983704 (Japanese)
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 (Japanese), the width of such brackets in Yu Gothic UI is 0 when halt
is enabled.
Image from: https://tawara-memo.hatenablog.com/entry/2024/10/12/174432 (Japanese)
Image from: https://tawara-memo.hatenablog.com/entry/2024/10/12/174432 (Japanese)
https://codepen.io/tats-u/pen/MWNEJRN
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.