From f5c295ecc595cd03584caa26d4cc26f4ad39fc4f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 10 Apr 2019 03:51:03 +0200 Subject: FontEditor: Add a "Glyph width:" label and align some things. --- Applications/FontEditor/FontEditor.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Applications') diff --git a/Applications/FontEditor/FontEditor.cpp b/Applications/FontEditor/FontEditor.cpp index 63f9afed08..18e66a8ae7 100644 --- a/Applications/FontEditor/FontEditor.cpp +++ b/Applications/FontEditor/FontEditor.cpp @@ -7,6 +7,7 @@ #include #include #include +#include FontEditorWidget::FontEditorWidget(const String& path, RetainPtr&& edited_font, GWidget* parent) : GWidget(parent) @@ -63,9 +64,13 @@ FontEditorWidget::FontEditorWidget(const String& path, RetainPtr&& edited_ info_label->set_text_alignment(TextAlignment::CenterLeft); info_label->set_relative_rect({ 5, 110, 100, 20 }); + auto* width_label = new GLabel("Glyph width:", this); + width_label->set_text_alignment(TextAlignment::CenterLeft); + width_label->set_relative_rect({ 5, 135, 100, 20 }); + auto* width_spinbox = new GSpinBox(this); width_spinbox->set_range(0, 32); - width_spinbox->set_relative_rect({ 5, 135, 100, 20 }); + width_spinbox->set_relative_rect({ 5, 155, m_glyph_editor_widget->preferred_width(), 20 }); auto* demo_label_1 = new GLabel(this); demo_label_1->set_font(m_edited_font.copy_ref()); -- cgit v1.2.3