Files
kitty/docs
Kovid Goyal 78d1275601 macOS: Fix rendering of the unicode hyphen (U+2010) character when using a font that does not include a glyph for it
The problem was caused by CoreText falling back to the glyph for the
ASCII hyphen U+00AD when the font does not contain a glyph for U+2010.
However, HarfBuzz does not do this automatic fallback (see
https://github.com/harfbuzz/harfbuzz/issues/517). This leads to the
character not being rendered.

To fix this we specialize HarfBuzz glyph lookup for this character
to follow CoreText. HarfBuzz should really do this automatically when
the hb_font is based on a CTFontRef, but I dont have the time/energy to
argue with its maintainers. Note that HarfBuzz already does this
automatic fallback for U+2011.

Hopefully, there aren't many more such special cases in CoreText.

Fixes #7525
2024-06-29 14:22:04 +05:30
..
...
2024-06-24 11:44:43 +05:30
2023-12-03 12:25:15 +05:30
2024-02-25 09:57:44 +05:30
2024-06-07 11:03:37 +02:00
2024-05-16 16:00:28 +05:30
...
2023-06-14 08:12:45 +05:30
...
2024-02-12 11:17:25 +05:30
...
2024-04-22 09:22:07 +05:30
2022-04-30 17:07:36 +08:00
...
2024-06-24 15:42:38 +05:30
...
2024-06-24 11:34:48 +05:30
...
2024-06-10 09:25:14 +05:30
...
2024-06-24 07:54:19 +05:30
2024-03-16 14:43:23 +01:00
2022-04-30 17:07:36 +08:00
2023-10-21 07:55:23 +05:30