mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05: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:
parent
37d844fd66
commit
8a657eaa34
5 changed files with 129 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue