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:
parent
d9fb838cf6
commit
1be830e3c6
3 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue