From 68899442780fd6ef53f2b13f7ed4bdf3cd786b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B4=80=EC=9A=B0=20=EC=95=88?= <ugi72@ajou.ac.kr> Date: Fri, 21 Jun 2024 23:27:30 +0900 Subject: [PATCH] =?UTF-8?q?ProjectWindows.cpp=20=EC=88=98=EC=A0=95,=20SetF?= =?UTF-8?q?ontRecursive=EC=99=80=20fontB=EB=A5=BC=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=ED=95=B4=20=EC=9C=88=EB=8F=84=EC=9A=B0=20=ED=8F=B0=ED=8A=B8=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ProjectWindows.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/ProjectWindows.cpp b/src/ProjectWindows.cpp index 71a76d0553..64c0e7079c 100644 --- a/src/ProjectWindows.cpp +++ b/src/ProjectWindows.cpp @@ -68,9 +68,31 @@ AUDACITY_DLL_API void SetProjectPanel( ProjectWindows::Get(project).mPanel = &panel; } +//추가된코드 +void SetFontRecursive(wxWindow* window, const wxFont& font) +{ + if (!window) + return; + + window->SetFont(font); // 폰트설정 + + wxWindowList children = window->GetChildren(); //각 윈도우의 자식들을 받아 아래 반복문으로 돌며 폰트적용 + for (wxWindowList::iterator it = children.begin(); it != children.end(); ++it) + { + SetFontRecursive(*it, font); + } +} + +//추가된코드, 맑은고딕으로 설정 +wxFont fontB(wxFontInfo(10).FaceName("Malgun Gothic").Bold()); + AUDACITY_DLL_API wxFrame &GetProjectFrame( AudacityProject &project ) { auto ptr = ProjectWindows::Get(project).mFrame; + + //추가된 코드 + SetFontRecursive(ptr, fontB); + if ( !ptr ) THROW_INCONSISTENCY_EXCEPTION; return *ptr; -- GitLab