summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-10 03:51:03 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-10 03:51:03 +0200
commitf5c295ecc595cd03584caa26d4cc26f4ad39fc4f (patch)
tree35b621f91e40e083dca7ae187a1d40caab443fa5 /Applications
parentcf8b117d9753bb2a4c35e8513475fa5b5623b2f5 (diff)
downloadserenity-f5c295ecc595cd03584caa26d4cc26f4ad39fc4f.zip
FontEditor: Add a "Glyph width:" label and align some things.
Diffstat (limited to 'Applications')
-rw-r--r--Applications/FontEditor/FontEditor.cpp7
1 files changed, 6 insertions, 1 deletions
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 <LibGUI/GTextBox.h>
#include <LibGUI/GCheckBox.h>
#include <LibGUI/GSpinBox.h>
+#include <stdlib.h>
FontEditorWidget::FontEditorWidget(const String& path, RetainPtr<Font>&& edited_font, GWidget* parent)
: GWidget(parent)
@@ -63,9 +64,13 @@ FontEditorWidget::FontEditorWidget(const String& path, RetainPtr<Font>&& 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());