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

FontEditor: Update GlyphMap on font type change

Since font type changes also change the amount of glyphs in a font, the
glyph map has to be re-rendered to properly showcase the change.
This commit is contained in:
Idan Horowitz 2021-04-18 14:31:39 +03:00 committed by Linus Groh
parent f461ee7d01
commit 60f82e0626
3 changed files with 10 additions and 0 deletions

View file

@ -288,6 +288,7 @@ FontEditorWidget::FontEditorWidget(const String& path, RefPtr<Gfx::BitmapFont>&&
m_type_combobox->on_change = [this](auto&, const auto& index) {
m_edited_font->set_type(static_cast<Gfx::FontTypes>(index.row()));
m_glyph_map_widget->reprobe_font();
};
m_presentation_spinbox->on_change = [this, update_demo](int value) {