From c7ea093c272100d656139a1097daf824174e5838 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Thu, 19 Sep 2019 15:34:54 -0700 Subject: [PATCH] Handle Supplemental Symbols and Pictographs --- include/fmt/format.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index db398969..ac2e8df1 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -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