From c44bc58aaa6ea269d16732fbd37b7479d70fbe9e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 28 Feb 2023 17:57:46 +0100 Subject: [PATCH] HackStudio: Don't hard-code a default code font If no HackStudio specific code font is set, we fall back to the system default fixed-width font. --- Userland/DevTools/HackStudio/HackStudioWidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp index aa8b5be432e..c44145824ff 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp @@ -1843,9 +1843,9 @@ void HackStudioWidget::update_history_actions() RefPtr HackStudioWidget::read_editor_font_from_config() { - auto font_family = Config::read_string("HackStudio"sv, "EditorFont"sv, "Family"sv, "Csilla"sv); - auto font_variant = Config::read_string("HackStudio"sv, "EditorFont"sv, "Variant"sv, "Regular"sv); - auto font_size = Config::read_i32("HackStudio"sv, "EditorFont"sv, "Size"sv, 10); + auto font_family = Config::read_string("HackStudio"sv, "EditorFont"sv, "Family"sv); + auto font_variant = Config::read_string("HackStudio"sv, "EditorFont"sv, "Variant"sv); + auto font_size = Config::read_i32("HackStudio"sv, "EditorFont"sv, "Size"sv); auto font = Gfx::FontDatabase::the().get(font_family, font_variant, font_size); if (font.is_null())