1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

Ladybird: Add a FontPlugin and try much harder to find suitable fonts

Instead of only looking at the SerenityOS default fonts, we now also
look recursively in /usr/share/fonts for suitable fonts that we can
load and use.
This commit is contained in:
Andreas Kling 2022-09-08 12:44:17 +02:00 committed by Andrew Kaster
parent 37d844fd66
commit 8a657eaa34
5 changed files with 129 additions and 6 deletions

View file

@ -18,6 +18,8 @@ Browser::Settings* s_settings;
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
QApplication app(arguments.argc, arguments.argv);
initialize_web_engine();
String url;
@ -28,7 +30,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
s_settings = new Browser::Settings();
QApplication app(arguments.argc, arguments.argv);
BrowserWindow window;
window.setWindowTitle("Ladybird");
window.resize(800, 600);