1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:47:35 +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

@ -112,6 +112,7 @@ public:
};
virtual NonnullRefPtr<Font> clone() const = 0;
virtual ErrorOr<NonnullRefPtr<Font>> try_clone() const = 0;
virtual ~Font() {};
virtual FontPixelMetrics pixel_metrics() const = 0;