diff --git a/Base/res/fonts/NotoEmoji.ttf b/Base/res/fonts/NotoEmoji.ttf new file mode 100644 index 00000000000..0731d6a875e Binary files /dev/null and b/Base/res/fonts/NotoEmoji.ttf differ diff --git a/Ladybird/FontPlugin.cpp b/Ladybird/FontPlugin.cpp index e679c160772..4c16e13b875 100644 --- a/Ladybird/FontPlugin.cpp +++ b/Ladybird/FontPlugin.cpp @@ -57,11 +57,17 @@ Gfx::Font& FontPlugin::default_fixed_width_font() RefPtr FontPlugin::default_emoji_font(float point_size) { + FlyString default_emoji_font_name; + + if (m_is_layout_test_mode) { + default_emoji_font_name = "Noto Emoji"_fly_string; + } else { #ifdef AK_OS_MACOS - auto default_emoji_font_name = "Apple Color Emoji"_fly_string; + default_emoji_font_name = "Apple Color Emoji"_fly_string; #else - auto default_emoji_font_name = "Noto Color Emoji"_fly_string; + default_emoji_font_name = "Noto Color Emoji"_fly_string; #endif + } return Gfx::FontDatabase::the().get(default_emoji_font_name, point_size, 400, Gfx::FontWidth::Normal, 0); } diff --git a/Ladybird/cmake/ResourceFiles.cmake b/Ladybird/cmake/ResourceFiles.cmake index 39699911a2b..24234c00c0e 100644 --- a/Ladybird/cmake/ResourceFiles.cmake +++ b/Ladybird/cmake/ResourceFiles.cmake @@ -1,4 +1,5 @@ set(FONTS + NotoEmoji.ttf SerenitySans-Regular.ttf ) list(TRANSFORM FONTS PREPEND "${LADYBIRD_SOURCE_DIR}/Base/res/fonts/")