mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 08:07:44 +00:00
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.
This commit is contained in:
parent
9f601fcbcf
commit
f5e914fb9f
5 changed files with 7 additions and 8 deletions
|
@ -144,7 +144,6 @@ public:
|
|||
virtual String family() const override { return m_font->family(); }
|
||||
virtual String variant() const override { return m_font->variant(); }
|
||||
virtual String qualified_name() const override { return String::formatted("{} {} {}", family(), presentation_size(), weight()); }
|
||||
virtual const Font& bold_variant() const override { return *this; } // FIXME: Perhaps remove this from the Gfx::Font interface
|
||||
|
||||
private:
|
||||
NonnullRefPtr<TTF::Font> m_font;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue