summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/FontDatabase.cpp
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@gmx.de>2021-01-02 18:21:29 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-15 08:50:48 +0100
commit0f41f5d9ba973d1dfe68998c1d9a93fd941b414c (patch)
tree153a60869f41b96dd0ad731f76f9466b10bbba10 /Userland/Libraries/LibGfx/FontDatabase.cpp
parent5a70ccecb3bc7a03155f93dff1af59abdee87bbc (diff)
downloadserenity-0f41f5d9ba973d1dfe68998c1d9a93fd941b414c.zip
LibGUI+LibGfx+LibTTF: Make fontpicker handle TTF fonts
Diffstat (limited to 'Userland/Libraries/LibGfx/FontDatabase.cpp')
-rw-r--r--Userland/Libraries/LibGfx/FontDatabase.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/FontDatabase.cpp b/Userland/Libraries/LibGfx/FontDatabase.cpp
index 0410b0dd9d..bf50ea8892 100644
--- a/Userland/Libraries/LibGfx/FontDatabase.cpp
+++ b/Userland/Libraries/LibGfx/FontDatabase.cpp
@@ -159,6 +159,7 @@ RefPtr<Gfx::Font> FontDatabase::get_by_name(const StringView& name)
RefPtr<Gfx::Font> FontDatabase::get(const String& family, unsigned size, unsigned weight)
{
+ dbgln("FontDatabase: Request font {} {} {}", family, size, weight);
for (auto typeface : m_private->typefaces) {
if (typeface->family() == family && typeface->weight() == weight)
return typeface->get_font(size);