diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index b383734c9..4721498dd 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -228,7 +228,8 @@ void FindReplaceDlg::create(int dialogID, bool isRTL) //::GetWindowRect(_hSelf, &rect); getClientRect(rect); _tab.init(_hInst, _hSelf, false, false, true); - _tab.setFont(TEXT("Tahoma"), 13); + int tabDpiDynamicalHeight = NppParameters::getInstance()->_dpiManager.scaleY(13); + _tab.setFont(TEXT("Tahoma"), tabDpiDynamicalHeight); const TCHAR *find = TEXT("Find"); const TCHAR *replace = TEXT("Replace"); diff --git a/PowerEditor/src/ScitillaComponent/UserDefineDialog.cpp b/PowerEditor/src/ScitillaComponent/UserDefineDialog.cpp index e8b111371..92ae7f53b 100644 --- a/PowerEditor/src/ScitillaComponent/UserDefineDialog.cpp +++ b/PowerEditor/src/ScitillaComponent/UserDefineDialog.cpp @@ -1047,7 +1047,8 @@ BOOL CALLBACK UserDefineDialog::run_dlgProc(UINT message, WPARAM wParam, LPARAM _pUserLang = _pCurrentUserLang; _ctrlTab.init(_hInst, _hSelf, false); - _ctrlTab.setFont(TEXT("Tahoma"), 13); + int tabDpiDynamicalHeight = NppParameters::getInstance()->_dpiManager.scaleY(13); + _ctrlTab.setFont(TEXT("Tahoma"), tabDpiDynamicalHeight); _folderStyleDlg.init(_hInst, _hSelf); _folderStyleDlg.create(IDD_FOLDER_STYLE_DLG);