mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:47:35 +00:00
LibGfx: Remove infallible BitmapFont::create() factory function
This was only used in TestFontHandling. So, let's remove it, and use the "create" name for the fallible one.
This commit is contained in:
parent
2f26a7bb12
commit
a1c24ef3ad
4 changed files with 11 additions and 17 deletions
|
@ -22,8 +22,7 @@ class BitmapFont final : public Font {
|
|||
public:
|
||||
virtual NonnullRefPtr<Font> clone() const override;
|
||||
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);
|
||||
static ErrorOr<NonnullRefPtr<BitmapFont>> create(u8 glyph_height, u8 glyph_width, bool fixed, size_t glyph_count);
|
||||
|
||||
virtual FontPixelMetrics pixel_metrics() const override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue