1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17: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:
Andreas Kling 2020-10-31 10:18:49 +01:00
parent e569f7fd1c
commit 982e066100
13 changed files with 12 additions and 17 deletions

View file

@ -25,9 +25,9 @@
*/
#include "BoardView.h"
#include <LibGUI/FontDatabase.h>
#include <LibGUI/Painter.h>
#include <LibGfx/Font.h>
#include <LibGfx/FontDatabase.h>
#include <LibGfx/Palette.h>
BoardView::BoardView(const Game::Board* board)
@ -63,7 +63,7 @@ void BoardView::pick_font()
{
String best_font_name;
int best_font_size = -1;
auto& font_database = GUI::FontDatabase::the();
auto& font_database = Gfx::FontDatabase::the();
font_database.for_each_font([&](const Gfx::Font& font) {
if (font.family() != "Liza" || font.weight() != 700)
return;