diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2024-03-03 19:48:50 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2024-03-03 19:48:50 +0100 |
commit | e03fb71b083a74efa3a533c2deb065d21436abe2 (patch) | |
tree | 8a35e4898529474ae46d82d30c26d3318fd571f3 /src | |
parent | Merge pull request #1689 from Nheko-Reborn/fixswitch (diff) | |
download | nheko-e03fb71b083a74efa3a533c2deb065d21436abe2.tar.xz |
Force emoji font on a few more characters
Looks a bit better and works around some height weirdness on my systems.
Diffstat (limited to 'src')
-rw-r--r-- | src/Utils.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp index 3151d017..9a725798 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp @@ -255,7 +255,10 @@ utils::codepointIsEmoji(uint code) { // TODO: Be more precise here. return (code >= 0x2600 && code <= 0x27bf) || (code >= 0x2b00 && code <= 0x2bff) || - (code >= 0x1f000 && code <= 0x1faff) || code == 0x200d || code == 0xfe0f; + (code >= 0x1f000 && code <= 0x1faff) || code == 0x200d || code == 0xfe0f || + code == 0x231a || code == 0x231b || (code >= 0x23e9 && code <= 0x23ff) || + code >= 0x25aa || code == 0x25ab || code == 0x25b6 || code == 0x25c0 || + (code >= 0x25fb && code <= 0x25fe) || (code >= 0x2460 && code <= 0x24ff); } QString |