mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
FontEditor: Let GlyphEditorWidget initialize a null BitmapFont
And remove public reference getters as there is no guarantee they are nonnull.
This commit is contained in:
parent
0ad5e85163
commit
24046f9adf
Notes:
sideshowbarker
2024-07-16 20:39:14 +09:00
Author: https://github.com/thankyouverycool
Commit: 24046f9adf
Pull-request: https://github.com/SerenityOS/serenity/pull/18764
Reviewed-by: https://github.com/caoimhebyrne ✅
3 changed files with 23 additions and 25 deletions
|
@ -653,7 +653,7 @@ ErrorOr<void> MainWidget::initialize(StringView path, RefPtr<Gfx::BitmapFont>&&
|
|||
if (m_preview_label)
|
||||
m_preview_label->set_font(*m_font);
|
||||
|
||||
m_glyph_editor_widget->set_font(*m_font);
|
||||
m_glyph_editor_widget->initialize(m_font);
|
||||
m_glyph_editor_widget->set_fixed_size(m_glyph_editor_widget->preferred_width(), m_glyph_editor_widget->preferred_height());
|
||||
m_glyph_editor_widget->set_glyph(active_glyph);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue