mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 14:45:08 +00:00
FontEditor: Add glyph spacing spinbox
This commit is contained in:
parent
edc3580756
commit
62d79a77d6
2 changed files with 8 additions and 1 deletions
|
@ -41,6 +41,8 @@ FontEditorWidget::FontEditorWidget(const String& path, RefPtr<Font>&& edited_fon
|
|||
m_ui->fixed_width_checkbox->set_text("Fixed width");
|
||||
m_ui->fixed_width_checkbox->set_checked(m_edited_font->is_fixed_width());
|
||||
|
||||
m_ui->spacing_spinbox->set_value(m_edited_font->glyph_spacing());
|
||||
|
||||
m_ui->path_textbox->set_text(m_path);
|
||||
m_ui->path_textbox->on_change = [this] {
|
||||
m_path = m_ui->path_textbox->text();
|
||||
|
@ -104,6 +106,11 @@ FontEditorWidget::FontEditorWidget(const String& path, RefPtr<Font>&& edited_fon
|
|||
update_demo();
|
||||
};
|
||||
|
||||
m_ui->spacing_spinbox->on_change = [this, update_demo](int value) {
|
||||
m_edited_font->set_glyph_spacing(value);
|
||||
update_demo();
|
||||
};
|
||||
|
||||
m_glyph_map_widget->set_selected_glyph('A');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue