Handle Supplemental Symbols and Pictographs

This commit is contained in:
Victor Zverovich 2019-09-19 15:34:54 -07:00
parent 00434c93ef
commit c7ea093c27

View File

@ -943,7 +943,9 @@ inline size_t compute_width(string_view s) {
(cp >= 0x20000 && cp <= 0x2fffd) || // CJK
(cp >= 0x30000 && cp <= 0x3fffd) ||
// Miscellaneous Symbols and Pictographs + Emoticons:
(cp >= 0x1f300 && cp <= 0x1f64f)));
(cp >= 0x1f300 && cp <= 0x1f64f) ||
// Supplemental Symbols and Pictographs:
(cp >= 0x1f900 && cp <= 0x1f9ff)));
}
return width;
#else