summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGfx/BitmapFont.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-20 02:14:29 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-20 02:48:29 +0200
commitf5e914fb9f2239cd3ede07b31143212c1e9b65b2 (patch)
tree1682526574938f864e7c2c3478341d6a9d68cc7e /Userland/Libraries/LibGfx/BitmapFont.h
parent9f601fcbcfa16c38dd8302bf9baeb4365db88c1e (diff)
downloadserenity-f5e914fb9f2239cd3ede07b31143212c1e9b65b2.zip
LibTTF+LibGfx: Make Gfx::Font::bold_variant() work for TTF fonts
There's no need for this to be a virtual, it's just a font database lookup and can be done in the Font base class.
Diffstat (limited to 'Userland/Libraries/LibGfx/BitmapFont.h')
-rw-r--r--Userland/Libraries/LibGfx/BitmapFont.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/Userland/Libraries/LibGfx/BitmapFont.h b/Userland/Libraries/LibGfx/BitmapFont.h
index e3d4701759..2bdbfbe8d0 100644
--- a/Userland/Libraries/LibGfx/BitmapFont.h
+++ b/Userland/Libraries/LibGfx/BitmapFont.h
@@ -105,8 +105,6 @@ public:
String qualified_name() const override;
- Font const& bold_variant() const override;
-
static size_t glyph_count_by_type(FontTypes type);
static String type_name_by_type(FontTypes type);
@@ -143,8 +141,6 @@ private:
bool m_fixed_width { false };
bool m_owns_arrays { false };
-
- mutable RefPtr<Gfx::Font> m_bold_variant;
};
}