From e3a85e2b337df780071c9bdb8e7b3a7bfe9b7943 Mon Sep 17 00:00:00 2001 From: SoftFever Date: Sat, 8 Jul 2023 14:48:07 +0800 Subject: [PATCH] use smaller font for codes --- src/slic3r/GUI/GUI_App.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 84ada0d0e0..ac7ea22c90 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -3085,7 +3085,7 @@ void GUI_App::init_fonts() // wxSYS_OEM_FIXED_FONT and wxSYS_ANSI_FIXED_FONT use the same as // DEFAULT in wxGtk. Use the TELETYPE family as a work-around m_code_font = wxFont(wxFontInfo().Family(wxFONTFAMILY_TELETYPE)); - m_code_font.SetPointSize(m_normal_font.GetPointSize()); + m_code_font.SetPointSize(m_small_font.GetPointSize()); } void GUI_App::update_fonts(const MainFrame *main_frame) @@ -3102,7 +3102,7 @@ void GUI_App::update_fonts(const MainFrame *main_frame) m_bold_font = m_normal_font.Bold(); m_link_font = m_bold_font.Underlined(); m_em_unit = main_frame->em_unit(); - m_code_font.SetPointSize(m_normal_font.GetPointSize()); + m_code_font.SetPointSize(m_small_font.GetPointSize()); } void GUI_App::set_label_clr_modified(const wxColour& clr)