summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibGUI/TextEditor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibGUI/TextEditor.cpp b/Libraries/LibGUI/TextEditor.cpp
index f3b13503eb..3725bbc119 100644
--- a/Libraries/LibGUI/TextEditor.cpp
+++ b/Libraries/LibGUI/TextEditor.cpp
@@ -58,7 +58,8 @@ TextEditor::TextEditor(Type type)
set_foreground_role(ColorRole::BaseText);
set_document(TextDocument::create());
set_scrollbars_enabled(is_multi_line());
- set_font(FontDatabase::the().get_by_name("Csilla Thin"));
+ if (is_multi_line())
+ set_font(Gfx::Font::default_fixed_width_font());
vertical_scrollbar().set_step(line_height());
m_cursor = { 0, 0 };
m_automatic_selection_scroll_timer = add<Core::Timer>(100, [this] {