diff --git a/src/Styles.c b/src/Styles.c index da96a21f1..0c3821a5b 100644 --- a/src/Styles.c +++ b/src/Styles.c @@ -3818,17 +3818,11 @@ void Style_SetStyles(HWND hwnd, const int iStyle, LPCWSTR lpszStyle) if (bIsDefaultStyle) { Style_StrGetFontName(L"font:$Code", wchFontName, COUNTOF(wchFontName)); } - else { - GetDefaultCodeFont(wchFontName, COUNTOF(wchFontName)); - } } if (StrIsNotEmpty(wchFontName)) { char chSetFontName[LF_FACESIZE<<2] = { '\0' }; WideCharToMultiByte(CP_UTF8, 0, wchFontName, -1, chSetFontName, (int)COUNTOF(chSetFontName), NULL, NULL); SciCall_StyleSetFont(iStyle, chSetFontName); - //char chGetFontName[LF_FACESIZE << 2] = { '\0' }; - //SciCall_StyleGetFont(iStyle, chGetFontName); - //assert(StringCchCompareXA(chGetFontName, chSetFontName) == 0); } // Font Weight