aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-11-26 20:50:41 +0100
committerdec05eba <dec05eba@protonmail.com>2022-11-26 20:50:41 +0100
commite12e7e960ee36607f6107a28c0935e8c2a006632 (patch)
tree35b1d372948344103679a1c1ae4f7a1b3b2b7776 /src
parentc5f465fe6c04afa26fd20ca600457d8de50cf42e (diff)
Support more emoji
Diffstat (limited to 'src')
-rw-r--r--src/Text.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Text.cpp b/src/Text.cpp
index 74a0625..2a09336 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -572,6 +572,9 @@ namespace QuickMedia
if(emoji_sequence_length > 0 && emoji_sequence[emoji_sequence_length - 1] == 0xfe0f && access(text_element.url.c_str(), F_OK) != 0) {
emoji_codepoint_combined.erase(emoji_codepoint_combined.end() - 5, emoji_codepoint_combined.end());
text_element.url = "/usr/share/quickmedia/emoji/" + emoji_codepoint_combined + ".png";
+ } else if(emoji_sequence_length > 0 && emoji_sequence[emoji_sequence_length - 1] != 0xfe0f && access(text_element.url.c_str(), F_OK) != 0) {
+ emoji_codepoint_combined += "-fe0f";
+ text_element.url = "/usr/share/quickmedia/emoji/" + emoji_codepoint_combined + ".png";
}
text_element.local = true;
text_element.size = { (int)vspace, (int)vspace };