summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/FontDatabase.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-21 18:10:23 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-21 20:15:51 +0200
commitbb23e61fbff779f56dd18cf4abd6ae5c0f8d8514 (patch)
tree580ba33767f3124693003dfd8a0e767865327e3e /Userland/Libraries/LibGfx/FontDatabase.h
parent66ad73993468807b8dff5367794acd66ebee1e59 (diff)
downloadserenity-bb23e61fbff779f56dd18cf4abd6ae5c0f8d8514.zip
LibGfx+WindowServer: Have WindowServer broadcast system font settings
Instead of everybody getting their system fonts from Gfx::FontDatabase (where it's all hardcoded), they now get it from WindowServer. These are then plumbed into the usual Gfx::FontDatabase places so that the old default_font() and default_fixed_width_font() APIs keep working.
Diffstat (limited to 'Userland/Libraries/LibGfx/FontDatabase.h')
-rw-r--r--Userland/Libraries/LibGfx/FontDatabase.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/FontDatabase.h b/Userland/Libraries/LibGfx/FontDatabase.h
index 7ad5f8b691..4f75ee5c88 100644
--- a/Userland/Libraries/LibGfx/FontDatabase.h
+++ b/Userland/Libraries/LibGfx/FontDatabase.h
@@ -37,6 +37,11 @@ public:
static Font& default_font();
static Font& default_fixed_width_font();
+ static String default_font_query();
+ static String fixed_width_font_query();
+ static void set_default_font_query(String);
+ static void set_fixed_width_font_query(String);
+
RefPtr<Gfx::Font> get(const String& family, unsigned size, unsigned weight);
RefPtr<Gfx::Font> get(const String& family, const String& variant, unsigned size);
RefPtr<Gfx::Font> get_by_name(const StringView&);