From e28570e3fa6e6be0d2f68856a19e11327a66a199 Mon Sep 17 00:00:00 2001 From: "METANEOCORTEX\\Kotti" Date: Fri, 2 Sep 2022 13:32:59 +0200 Subject: [PATCH 1/2] +fix: propagate default font to undefined-font styles --- src/Styles.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Styles.c b/src/Styles.c index da96a21f1..8fff9c285 100644 --- a/src/Styles.c +++ b/src/Styles.c @@ -3818,9 +3818,6 @@ 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' }; From 15e5747a1e4373d239d5d792b0178dc2515a0837 Mon Sep 17 00:00:00 2001 From: "METANEOCORTEX\\Kotti" Date: Fri, 2 Sep 2022 13:34:28 +0200 Subject: [PATCH 2/2] +fix: propagate default font to undefined-font styles --- src/Styles.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Styles.c b/src/Styles.c index 8fff9c285..0c3821a5b 100644 --- a/src/Styles.c +++ b/src/Styles.c @@ -3823,9 +3823,6 @@ void Style_SetStyles(HWND hwnd, const int iStyle, LPCWSTR lpszStyle) 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