Skip to content

Commit ca847b7

Browse files
authored
Merge pull request #1129 from ychin/sf-symbols-double-width
Make SF Symbols double-width
2 parents 615fa7a + 066de9d commit ca847b7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/mbyte.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,6 +1545,15 @@ utf_char2cells(int c)
15451545
{0x1f6e9, 0x1f6e9},
15461546
{0x1f6f0, 0x1f6f0},
15471547
{0x1f6f3, 0x1f6f3}
1548+
#ifdef FEAT_GUI_MACVIM
1549+
// Include SF Symbols characters, which should be rendered as
1550+
// double-width. All of them are in the Supplementary Private Use Area-B
1551+
// range. The exact range was determined by downloading the "SF Symbols"
1552+
// app from Apple, and then selecting all symbols, copying them out, and
1553+
// inspecting the unicode values of them.
1554+
,
1555+
{0x100000, 0x100d7f}
1556+
#endif
15481557
};
15491558

15501559
if (c >= 0x100)

0 commit comments

Comments
 (0)