From 77c1864bf0b2b2085cd55f4413e860f3b433fa2f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 1 May 2020 15:35:55 +0300 Subject: NewStory: fix for default font settings --- plugins/NewStory/src/fonts.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/NewStory') diff --git a/plugins/NewStory/src/fonts.cpp b/plugins/NewStory/src/fonts.cpp index 12f0351721..78a59ed3c2 100644 --- a/plugins/NewStory/src/fonts.cpp +++ b/plugins/NewStory/src/fonts.cpp @@ -70,10 +70,15 @@ void InitFonts() it.cl = Colour_Get(cid.group, cid.name); } + LOGFONT lfDefault; + SystemParametersInfo(SPI_GETICONTITLELOGFONT, sizeof(lfDefault), &lfDefault, FALSE); + FontID fontid = {}; fontid.flags = FIDF_DEFAULTVALID; strncpy_s(fontid.group, MODULENAME, _TRUNCATE); strncpy_s(fontid.dbSettingsGroup, MODULENAME, _TRUNCATE); + strncpy_s(fontid.deffontsettings.szFace, _T2A(lfDefault.lfFaceName), _TRUNCATE); + fontid.deffontsettings.size = -12; for (auto &it : g_fontTable) { fontid.order = int(&it - g_fontTable); -- cgit v1.2.3