mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07: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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue