Render private use unicode characters that are followed by a space as two cell ligatures. Fixes #357

This commit is contained in:
Kovid Goyal
2018-03-04 22:58:24 +05:30
parent e716f6d35e
commit 97e1ecabdc
2 changed files with 32 additions and 7 deletions

View File

@@ -452,11 +452,9 @@ Some programs, like powerline, vim with fancy gutter symbols/status-bar, etc.
use unicode characters from the private use area to represent symbols. Often
these symbols are square and should be rendered in two cells. However, since
private use area symbols all have their width set to one in the unicode
standard, kitty renders them either smaller or truncated. The correct solution
for this is to use either use different symbols that are not square, or to use
a font that defines ligatures with the space character for these symbols. See
link:https://github.com/kovidgoyal/kitty/issues/182[#182] for a discussion of
the approach using ligatures.
standard, kitty renders them either smaller or truncated. The exception (as of
kitty 0.8.1) is if these characters are followed by a space or empty cell in
which case kitty makes use of the extra cell to render them in two cells.
=== How do I build kitty.app on macOS?