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:
parent
0ad5e85163
commit
24046f9adf
3 changed files with 23 additions and 25 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue