mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 09:15:57 +02:00
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