diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-07 19:00:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-07 19:00:25 +0200 |
commit | 8dddc1f0e2e9eeb29fc59477b515bcd6bb1243ec (patch) | |
tree | 8b481cf2cd77920bc06d440eabaacad1f548a1a2 | |
parent | c9605f0595173bca0f158f2782de950ac6bed147 (diff) |
patch 8.2.2731: Mac: SF symbols are not displayed properlyv8.2.2731
Problem: Mac: SF symbols are not displayed properly.
Solution: Add custom range to list of double-width characters. (Yee Cheng
Chin, closes #8077)
-rw-r--r-- | src/mbyte.c | 9 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/mbyte.c b/src/mbyte.c index 079e0d2b43..e3d64ba01b 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -1545,6 +1545,15 @@ utf_char2cells(int c) {0x1f6e9, 0x1f6e9}, {0x1f6f0, 0x1f6f0}, {0x1f6f3, 0x1f6f3} + +#ifdef MACOS_X + // Include SF Symbols characters, which should be rendered as + // double-width. All of them are in the Supplementary Private Use + // Area-B range. The exact range was determined by downloading the "SF + // Symbols" app from Apple, and then selecting all symbols, copying + // them out, and inspecting the unicode values of them. + , {0x100000, 0x100d7f} +#endif }; if (c >= 0x100) diff --git a/src/version.c b/src/version.c index 5850872fbf..7a865de2a1 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2731, +/**/ 2730, /**/ 2729, |