Skip to content

Commit

Permalink
FontPluginQt: Initialize the default fixed-width font
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Sep 18, 2022
1 parent c6a6126 commit 8d9910b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FontPluginQt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8d9910b

Please sign in to comment.