1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07:45 +00:00

FontEditor: Move menu bar into editor and tweak several widgets

Actions are now shared between menu bar and toolbar. Adds an edit
menu to complement toolbar actions. Glyphs are now passed as ints
instead of u8s; fixes Latin Extended+ glyphs failing to update in
real time on map. Converts weight and type to more human-readable
combo box lists. Selected glyph now scrolls into view on load.
This commit is contained in:
thankyouverycool 2021-04-10 13:40:59 -04:00 committed by Andreas Kling
parent c283429196
commit cdfa2614b9
6 changed files with 167 additions and 122 deletions

View file

@ -38,6 +38,7 @@ public:
int selected_glyph() const { return m_selected_glyph; }
void set_selected_glyph(int);
void scroll_to_glyph(int glyph);
int rows() const { return m_rows; }
int columns() const { return m_columns; }
@ -57,7 +58,6 @@ private:
virtual void resize_event(GUI::ResizeEvent&) override;
Gfx::IntRect get_outer_rect(int glyph) const;
void scroll_to_glyph(int glyph);
RefPtr<Gfx::BitmapFont> m_font;
int m_glyph_count { 384 };