diff --git a/Tests/LibGfx/BenchmarkGfxPainter.cpp b/Tests/LibGfx/BenchmarkGfxPainter.cpp index ca4fef41cf..5e763403ed 100644 --- a/Tests/LibGfx/BenchmarkGfxPainter.cpp +++ b/Tests/LibGfx/BenchmarkGfxPainter.cpp @@ -7,9 +7,19 @@ #include #include +#include #include #include +// Make sure that no matter what order tests are run in, we've got some +// default fonts for the application to use without talking to WindowServer +static struct FontDatabaseSpoofer { + FontDatabaseSpoofer() + { + Gfx::FontDatabase::the().set_default_font_query("Katica 10 400"sv); + } +} g_spoof; + BENCHMARK_CASE(diagonal_lines) { const int run_count = 50;