From 1af3da39fd036c2d1ddbeba022abe94d410e2dfa Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Tue, 3 Oct 2023 15:42:10 -0600 Subject: [PATCH] headless-browser: Load fonts via Core::Resource URIs --- Userland/Utilities/headless-browser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Utilities/headless-browser.cpp b/Userland/Utilities/headless-browser.cpp index 1dca57baaca..0887921247c 100644 --- a/Userland/Utilities/headless-browser.cpp +++ b/Userland/Utilities/headless-browser.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -426,8 +427,7 @@ ErrorOr serenity_main(Main::Arguments arguments) Gfx::FontDatabase::set_window_title_font_query("Katica 10 700 0"); Gfx::FontDatabase::set_fixed_width_font_query("Csilla 10 400 0"); - auto fonts_path = LexicalPath::join(resources_folder, "fonts"sv); - Gfx::FontDatabase::set_default_fonts_lookup_path(fonts_path.string()); + Core::ResourceImplementation::install(make(MUST(String::from_utf8(resources_folder)))); auto theme_path = LexicalPath::join(resources_folder, "themes"sv, "Default.ini"sv); auto theme = TRY(Gfx::load_system_theme(theme_path.string()));