Ladybird/FontPluginQt: Initialize the default fixed-width font

This commit is contained in:
Andreas Kling 2022-09-18 02:11:48 +02:00 committed by Andrew Kaster
parent 3628eda0db
commit 617aba2420
Notes: sideshowbarker 2024-07-17 08:36:27 +09:00

View file

@ -32,6 +32,10 @@ FontPluginQt::FontPluginQt()
auto default_font_name = generic_font_name(Web::Platform::GenericFont::UiSansSerif);
m_default_font = Gfx::FontDatabase::the().get(default_font_name, 12.0, 400, 0);
VERIFY(m_default_font);
auto default_fixed_width_font_name = generic_font_name(Web::Platform::GenericFont::UiMonospace);
m_default_fixed_width_font = Gfx::FontDatabase::the().get(default_fixed_width_font_name, 12.0, 400, 0);
VERIFY(m_default_fixed_width_font);
}
FontPluginQt::~FontPluginQt() = default;