diff --git a/Ladybird/WebContent/main.cpp b/Ladybird/WebContent/main.cpp index 6d2fc0bb5cc..4084e88f8b4 100644 --- a/Ladybird/WebContent/main.cpp +++ b/Ladybird/WebContent/main.cpp @@ -136,6 +136,8 @@ ErrorOr serenity_main(Main::Arguments arguments) Gfx::FontDatabase::the().set_force_fontconfig(true); } + Gfx::FontDatabase::the().load_all_fonts_from_uri("resource://fonts"sv); + // Layout test mode implies internals object is exposed and the Skia CPU backend is used if (is_layout_test_mode) { expose_internals_object = true; diff --git a/Userland/Libraries/LibGfx/Font/FontDatabase.cpp b/Userland/Libraries/LibGfx/Font/FontDatabase.cpp index 7bd3f8c48e9..1b949606377 100644 --- a/Userland/Libraries/LibGfx/Font/FontDatabase.cpp +++ b/Userland/Libraries/LibGfx/Font/FontDatabase.cpp @@ -78,7 +78,6 @@ void FontDatabase::load_all_fonts_from_uri(StringView uri) FontDatabase::FontDatabase() : m_private(make()) { - load_all_fonts_from_uri("resource://fonts"sv); } RefPtr FontDatabase::get(FlyString const& family, float point_size, unsigned weight, unsigned width, unsigned slope)