diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-01-09 17:29:06 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-16 11:17:03 +0100 |
commit | 21a24c36a8210ae64cf804dc8bd063f77006b55a (patch) | |
tree | fc8eedd1983c37b9f66899e1a1854807c3a81bd1 /Userland/Libraries/LibGUI/GlyphMapWidget.h | |
parent | 8175cd0a28e78f71c494796c69faac7574d3910f (diff) | |
download | serenity-21a24c36a8210ae64cf804dc8bd063f77006b55a.zip |
LibGUI: Make GlyphMapWidget work with vector fonts
This basically just meant replacing the `m_font` field with the one
inherited from Widget.
Diffstat (limited to 'Userland/Libraries/LibGUI/GlyphMapWidget.h')
-rw-r--r-- | Userland/Libraries/LibGUI/GlyphMapWidget.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Userland/Libraries/LibGUI/GlyphMapWidget.h b/Userland/Libraries/LibGUI/GlyphMapWidget.h index dbc25e08ec..e5c82eb8e1 100644 --- a/Userland/Libraries/LibGUI/GlyphMapWidget.h +++ b/Userland/Libraries/LibGUI/GlyphMapWidget.h @@ -19,8 +19,6 @@ class GlyphMapWidget final : public AbstractScrollableWidget { public: virtual ~GlyphMapWidget() override; - void initialize(Gfx::BitmapFont&); - class Selection { public: Selection() = default; @@ -61,9 +59,6 @@ public: int rows() const { return m_rows; } int columns() const { return m_columns; } - Gfx::BitmapFont& font() { return *m_font; } - Gfx::BitmapFont const& font() const { return *m_font; } - Function<void(int)> on_active_glyph_changed; private: @@ -72,6 +67,7 @@ private: virtual void mousedown_event(MouseEvent&) override; virtual void keydown_event(KeyEvent&) override; virtual void resize_event(ResizeEvent&) override; + virtual void did_change_font() override; Gfx::IntRect get_outer_rect(int glyph) const; @@ -80,7 +76,6 @@ private: void paste_glyph(int glyph); void delete_glyph(int glyph); - RefPtr<Gfx::BitmapFont> m_font; int m_glyph_count { 0x110000 }; int m_columns { 0 }; int m_rows { 0 }; |