mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
LibGfx: Add pure virtual fallible clone() for Fonts
This commit is contained in:
parent
d9fb838cf6
commit
1be830e3c6
Notes:
sideshowbarker
2024-07-17 09:56:35 +09:00
Author: https://github.com/thankyouverycool
Commit: 1be830e3c6
Pull-request: https://github.com/SerenityOS/serenity/pull/16104
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