mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
LibGfx: Move FontDatabase from LibGUI to LibGfx
Not sure why I put this into LibGUI in the first place.
This commit is contained in:
parent
e569f7fd1c
commit
982e066100
13 changed files with 12 additions and 17 deletions
|
@ -39,12 +39,12 @@
|
|||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/Clipboard.h>
|
||||
#include <LibGUI/DragOperation.h>
|
||||
#include <LibGUI/FontDatabase.h>
|
||||
#include <LibGUI/Menu.h>
|
||||
#include <LibGUI/Painter.h>
|
||||
#include <LibGUI/ScrollBar.h>
|
||||
#include <LibGUI/Window.h>
|
||||
#include <LibGfx/Font.h>
|
||||
#include <LibGfx/FontDatabase.h>
|
||||
#include <LibGfx/Palette.h>
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
|
@ -122,7 +122,7 @@ TerminalWidget::TerminalWidget(int ptm_fd, bool automatic_size_policy, RefPtr<Co
|
|||
if (font_entry == "default")
|
||||
set_font(Gfx::Font::default_fixed_width_font());
|
||||
else
|
||||
set_font(GUI::FontDatabase::the().get_by_name(font_entry));
|
||||
set_font(Gfx::FontDatabase::the().get_by_name(font_entry));
|
||||
|
||||
m_line_height = font().glyph_height() + m_line_spacing;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue