1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 02:08:11 +00:00

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.
This commit is contained in:
Stephan Unverwerth 2020-12-29 18:25:13 +01:00 committed by Andreas Kling
parent 1a072a61fb
commit b4d1390714
48 changed files with 152 additions and 115 deletions

View file

@ -37,6 +37,7 @@
#include <LibGUI/Window.h>
#include <LibGfx/Bitmap.h>
#include <LibGfx/Font.h>
#include <LibGfx/FontDatabase.h>
#include <LibGfx/Point.h>
#include <stdio.h>
@ -62,7 +63,7 @@ int main(int argc, char** argv)
RefPtr<Gfx::Font> edited_font;
if (path == nullptr) {
path = "/tmp/saved.font";
edited_font = Gfx::Font::default_font().clone();
edited_font = Gfx::FontDatabase::default_font().clone();
} else {
edited_font = Gfx::Font::load_from_file(path)->clone();
if (!edited_font) {