0
0
mirror of https://github.com/vim/vim.git synced 2025-09-10 22:33:40 -04:00

patch 8.2.2731: Mac: SF symbols are not displayed properly

Problem:    Mac: SF symbols are not displayed properly.
Solution:   Add custom range to list of double-width characters. (Yee Cheng
            Chin, closes #8077)
This commit is contained in:
Bram Moolenaar 2021-04-07 19:00:25 +02:00
parent c9605f0595
commit 8dddc1f0e2
2 changed files with 11 additions and 0 deletions

View File

@ -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)

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2731,
/**/
2730,
/**/