Ladybird: Specify the emoji image path in Ladybird's font plugin

This commit is contained in:
Timothy Flynn 2023-03-01 08:44:34 -05:00 committed by Linus Groh
parent fd1fbad1d2
commit 9fb7f7fceb
Notes: sideshowbarker 2024-07-17 00:57:24 +09:00

View file

@ -11,6 +11,7 @@
#include <AK/DeprecatedString.h>
#include <AK/String.h>
#include <LibCore/StandardPaths.h>
#include <LibGfx/Font/Emoji.h>
#include <LibGfx/Font/FontDatabase.h>
#include <QFont>
#include <QFontInfo>
@ -31,6 +32,8 @@ FontPluginQt::FontPluginQt()
Gfx::FontDatabase::set_default_font_query("Katica 10 400 0");
Gfx::FontDatabase::set_fixed_width_font_query("Csilla 10 400 0");
Gfx::Emoji::set_emoji_lookup_path(String::formatted("{}/res/emoji", s_serenity_resource_root).release_value_but_fixme_should_propagate_errors());
update_generic_fonts();
auto default_font_name = generic_font_name(Web::Platform::GenericFont::UiSansSerif);