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:
parent
3628eda0db
commit
617aba2420
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue