mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-29 00:35:03 +00:00
Handle Supplemental Symbols and Pictographs
This commit is contained in:
parent
00434c93ef
commit
c7ea093c27
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user