summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-20 18:40:48 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-20 20:55:29 +0200
commit6a012ad79f95673a36531c27c81e0efa6c6ec664 (patch)
tree54777eacd8382e76f87d578e57ac080cb531c0e1 /Userland/Libraries/LibWeb
parent068ddf4513281c0aa183552273b3b9a811b78263 (diff)
downloadserenity-6a012ad79f95673a36531c27c81e0efa6c6ec664.zip
LibGfx: Remove Gfx::FontDatabase::default_bold_font()
Instead use default_font().bold_variant() in cases where we want a bold variant of the default font. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleProperties.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
index 01bf6b4d68..5fa06a9b31 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
+++ b/Userland/Libraries/LibWeb/CSS/StyleProperties.cpp
@@ -200,7 +200,7 @@ RefPtr<Gfx::Font> StyleProperties::font_fallback(bool monospace, bool bold) cons
return Gfx::FontDatabase::default_fixed_width_font();
if (bold)
- return Gfx::FontDatabase::default_bold_font();
+ return Gfx::FontDatabase::default_font().bold_variant();
return Gfx::FontDatabase::default_font();
}