comparison src/mbyte.c @ 31014:22eeb290c752 v9.0.0842

patch 9.0.0842: Unicode range for Apple SF symbols is outdated Commit: https://github.com/vim/vim/commit/0e364c9fca7a666de0775007d2f0687ecdd73c8d Author: Yee Cheng Chin <ychin.git@gmail.com> Date: Mon Nov 7 11:05:52 2022 +0000 patch 9.0.0842: Unicode range for Apple SF symbols is outdated Problem: Unicode range for Apple SF symbols is outdated. Solution: Update to SF Symbols 4. (Yee Cheng Chin, closes https://github.com/vim/vim/issues/11474)
author Bram Moolenaar <Bram@vim.org>
date Mon, 07 Nov 2022 12:15:05 +0100
parents 65c35212c772
children 9e1062b4aa94
comparison
equal deleted inserted replaced
31013:a818f6703bef 31014:22eeb290c752
1563 {0x1f6e9, 0x1f6e9}, 1563 {0x1f6e9, 0x1f6e9},
1564 {0x1f6f0, 0x1f6f0}, 1564 {0x1f6f0, 0x1f6f0},
1565 {0x1f6f3, 0x1f6f3} 1565 {0x1f6f3, 0x1f6f3}
1566 1566
1567 #ifdef MACOS_X 1567 #ifdef MACOS_X
1568 // Include SF Symbols characters, which should be rendered as 1568 // Include SF Symbols 4 characters, which should be rendered as
1569 // double-width. All of them are in the Supplementary Private Use 1569 // double-width. SF Symbols is an Apple-specific set of symbols and
1570 // Area-B range. The exact range was determined by downloading the "SF 1570 // icons for use in Apple operating systems. They are included as
1571 // Symbols" app from Apple, and then selecting all symbols, copying 1571 // glyphs as part of the default San Francisco fonts shipped with
1572 // them out, and inspecting the unicode values of them. 1572 // macOS. The current version is SF Symbols 4.
1573 , {0x100000, 0x100d7f} 1573 //
1574 // These Apple-specific glyphs are not part of standard Unicode, and
1575 // all of them are in the Supplementary Private Use Area-B range. The
1576 // exact range was determined by downloading the 'SF Symbols 4' app
1577 // from Apple (https://developer.apple.com/sf-symbols/), and then
1578 // selecting all symbols, copying them out, and inspecting the unicode
1579 // values of them.
1580 //
1581 // Note that these symbols are of varying widths, as they are symbols
1582 // representing differents things ranging from a simple gear icon to an
1583 // airplane. Some of them are in fact wider than double-width, but Vim
1584 // doesn't support non-fixed-width font, and tagging them as
1585 // double-width is the best way to handle them.
1586 //
1587 // Also see https://en.wikipedia.org/wiki/San_Francisco_(sans-serif_typeface)#SF_Symbols
1588 , {0x100000, 0x1018c7}
1574 #endif 1589 #endif
1575 }; 1590 };
1576 1591
1577 if (c >= 0x100) 1592 if (c >= 0x100)
1578 { 1593 {