mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:17:45 +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
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue