1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:08:10 +00:00

LibGfx: Add pure virtual fallible clone() for Fonts

This commit is contained in:
thankyouverycool 2022-08-15 06:26:56 -04:00 committed by Andreas Kling
parent d9fb838cf6
commit 1be830e3c6
3 changed files with 4 additions and 2 deletions

View file

@ -21,7 +21,7 @@ namespace Gfx {
class BitmapFont final : public Font {
public:
virtual NonnullRefPtr<Font> clone() const override;
ErrorOr<NonnullRefPtr<Font>> try_clone() const;
ErrorOr<NonnullRefPtr<Font>> try_clone() const override;
static NonnullRefPtr<BitmapFont> create(u8 glyph_height, u8 glyph_width, bool fixed, size_t glyph_count);
static ErrorOr<NonnullRefPtr<BitmapFont>> try_create(u8 glyph_height, u8 glyph_width, bool fixed, size_t glyph_count);