From 22cd861c7e8080b0c6c2d7a2d601c58773e70df6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 18 May 2020 16:41:29 +0200 Subject: [PATCH] Calculator: Set a fixed-width font on the text box GUI::TextEditor does not yet support right-aligned variable-width fonts so just switch this to a fixed-width font for now. --- Applications/Calculator/CalculatorWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Applications/Calculator/CalculatorWidget.cpp b/Applications/Calculator/CalculatorWidget.cpp index a51251dc48..bc76b576cf 100644 --- a/Applications/Calculator/CalculatorWidget.cpp +++ b/Applications/Calculator/CalculatorWidget.cpp @@ -29,6 +29,7 @@ #include #include #include +#include CalculatorWidget::CalculatorWidget() { @@ -37,6 +38,7 @@ CalculatorWidget::CalculatorWidget() m_entry = add(); m_entry->set_relative_rect(5, 5, 244, 26); m_entry->set_text_alignment(Gfx::TextAlignment::CenterRight); + m_entry->set_font(Gfx::Font::default_fixed_width_font()); m_label = add(); m_label->set_relative_rect(12, 42, 27, 27);