mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00

Related to #1768 but doesn't fix it properly. This is a temporary hack to avoid some issues with fonts that have mixed color/non-color glyphs. If there are mixed presentations and the font does not have emoji codepoints, then we assume it is text. This fixes the typical scenarios. This is not a long term solution. A proper long term solution is to detect this scenario and on a per-glyph basis handle colorization (or the lack thereof) correctly. It looks like to do this we'll have to parse some font tables which is considerably more work so I wanted to do this first.