1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05: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:
Sam Atkins 2023-10-02 11:56:49 +01:00 committed by Tim Schumacher
parent 2f26a7bb12
commit a1c24ef3ad
4 changed files with 11 additions and 17 deletions

View file

@ -236,7 +236,7 @@ ErrorOr<NonnullRefPtr<Gfx::BitmapFont>> NewFontDialog::create_font()
{
save_metadata();
auto font = TRY(Gfx::BitmapFont::try_create(m_new_font_metadata.glyph_height, m_new_font_metadata.glyph_width, m_new_font_metadata.is_fixed_width, 0x110000));
auto font = TRY(Gfx::BitmapFont::create(m_new_font_metadata.glyph_height, m_new_font_metadata.glyph_width, m_new_font_metadata.is_fixed_width, 0x110000));
font->set_name(m_new_font_metadata.name);
font->set_family(m_new_font_metadata.family);
font->set_presentation_size(m_new_font_metadata.presentation_size);