1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:07:45 +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:
thankyouverycool 2023-05-10 17:01:12 -04:00 committed by Andreas Kling
parent 0ad5e85163
commit 24046f9adf
3 changed files with 23 additions and 25 deletions

View file

@ -33,9 +33,7 @@ public:
int preferred_width() const;
int preferred_height() const;
Gfx::BitmapFont& font() { return *m_font; }
Gfx::BitmapFont const& font() const { return *m_font; }
void set_font(Gfx::BitmapFont&);
void initialize(Gfx::BitmapFont*);
int scale() const { return m_scale; }
void set_scale(int scale);