mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +00:00
WindowServer+LibGUI: Add an IPC API to change the current system fonts
This patch adds a set_system_fonts() IPC API that takes the two main font queries as parameters. We'll probably expand this with additional queries when we figure out what they should be. Note that changing the system fonts on a live system mostly takes effect in newly launched programs. This is because GUI::Widget will currently cache a pointer to the Gfx::FontDatabase::default_font() when first constructed. This is something we'll have to fix somehow. Also note that the settings are not yet persisted.
This commit is contained in:
parent
bb23e61fbf
commit
c778130d63
6 changed files with 39 additions and 8 deletions
|
@ -70,6 +70,7 @@ void WindowServerConnection::update_system_fonts(const String& default_font_quer
|
|||
{
|
||||
Gfx::FontDatabase::set_default_font_query(default_font_query);
|
||||
Gfx::FontDatabase::set_fixed_width_font_query(fixed_width_font_query);
|
||||
Window::update_all_windows({});
|
||||
}
|
||||
|
||||
void WindowServerConnection::paint(i32 window_id, Gfx::IntSize const& window_size, Vector<Gfx::IntRect> const& rects)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue