diff options
author | George Hazan <ghazan@miranda.im> | 2020-05-01 15:35:55 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-05-01 15:35:55 +0300 |
commit | 77c1864bf0b2b2085cd55f4413e860f3b433fa2f (patch) | |
tree | 4e9db4e8aa4dd4ff200c816299331113b9727782 /plugins/NewStory/src/fonts.cpp | |
parent | 25cca93d684bdf080ad39484110d92963576ec67 (diff) |
NewStory: fix for default font settings
Diffstat (limited to 'plugins/NewStory/src/fonts.cpp')
-rw-r--r-- | plugins/NewStory/src/fonts.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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); |