summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-02-28 08:04:11 -0500
committerLinus Groh <mail@linusgroh.de>2023-02-28 13:22:58 +0000
commite231f72f6119926eda568cbd19c4cec684c0b77a (patch)
treeb1115c460d4ff5282c97bcbda4c52f61daa80032 /Userland
parent42c272c059a7f44daa8bcb94d3eb9517084f773a (diff)
downloadserenity-e231f72f6119926eda568cbd19c4cec684c0b77a.zip
LibGfx: Render text presentation emoji as text if we have its glyph
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibGfx/Painter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/Painter.cpp b/Userland/Libraries/LibGfx/Painter.cpp
index 82d09fd998..55a926e4a9 100644
--- a/Userland/Libraries/LibGfx/Painter.cpp
+++ b/Userland/Libraries/LibGfx/Painter.cpp
@@ -1415,7 +1415,7 @@ void Painter::draw_glyph_or_emoji(FloatPoint point, Utf8CodePointIterator& it, F
};
auto font_contains_glyph = font.contains_glyph(code_point);
- auto check_for_emoji = Unicode::could_be_start_of_emoji_sequence(it);
+ auto check_for_emoji = Unicode::could_be_start_of_emoji_sequence(it, font_contains_glyph ? Unicode::SequenceType::EmojiPresentation : Unicode::SequenceType::Any);
// If the font contains the glyph, and we know it's not the start of an emoji, draw a text glyph.
if (font_contains_glyph && !check_for_emoji) {