diff --git a/src/ProjectWindows.cpp b/src/ProjectWindows.cpp index 71a76d05535bd5d8459817d01638bd494e742abc..64c0e7079c874534e9875290558ae0031d4b22cb 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;