diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-02-28 08:04:11 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-28 13:22:58 +0000 |
commit | e231f72f6119926eda568cbd19c4cec684c0b77a (patch) | |
tree | b1115c460d4ff5282c97bcbda4c52f61daa80032 /Userland | |
parent | 42c272c059a7f44daa8bcb94d3eb9517084f773a (diff) | |
download | serenity-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.cpp | 2 |
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) { |