diff options
author | Stephan Unverwerth <s.unverwerth@gmx.de> | 2020-12-29 18:25:13 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-30 20:40:30 +0100 |
commit | b4d13907148f2790482df5608b4e6c4ae6a68bc8 (patch) | |
tree | 40986208bd40ca15cdfa68e970518413929edce2 /Libraries/LibVT | |
parent | 1a072a61fb88425e0e14d30a9c9805598c552cb7 (diff) | |
download | serenity-b4d13907148f2790482df5608b4e6c4ae6a68bc8.zip |
LibGFX: Move default_xxx_font() methods from Font to FontDatabase
When we have an abstract font class it makes no sense to keep
these methods in the Font class.
Diffstat (limited to 'Libraries/LibVT')
-rw-r--r-- | Libraries/LibVT/TerminalWidget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibVT/TerminalWidget.cpp b/Libraries/LibVT/TerminalWidget.cpp index 1928644f00..275886c3c8 100644 --- a/Libraries/LibVT/TerminalWidget.cpp +++ b/Libraries/LibVT/TerminalWidget.cpp @@ -133,7 +133,7 @@ TerminalWidget::TerminalWidget(int ptm_fd, bool automatic_size_policy, RefPtr<Co auto font_entry = m_config->read_entry("Text", "Font", "default"); if (font_entry == "default") - set_font(Gfx::Font::default_fixed_width_font()); + set_font(Gfx::FontDatabase::default_fixed_width_font()); else set_font(Gfx::FontDatabase::the().get_by_name(font_entry)); @@ -1022,7 +1022,7 @@ void TerminalWidget::did_change_font() m_line_height = font().glyph_height() + m_line_spacing; // TODO: try to find a bold version of the new font (e.g. CsillaThin7x10 -> CsillaBold7x10) - const Gfx::Font& bold_font = Gfx::Font::default_bold_fixed_width_font(); + const Gfx::Font& bold_font = Gfx::FontDatabase::default_bold_fixed_width_font(); if (bold_font.glyph_height() == font().glyph_height() && bold_font.glyph_width(' ') == font().glyph_width(' ')) m_bold_font = &bold_font; |