1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +00:00

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

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;