summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/fonts.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-05-01 15:35:55 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-05-01 15:35:55 +0300
commit77c1864bf0b2b2085cd55f4413e860f3b433fa2f (patch)
tree4e9db4e8aa4dd4ff200c816299331113b9727782 /plugins/NewStory/src/fonts.cpp
parent25cca93d684bdf080ad39484110d92963576ec67 (diff)
NewStory: fix for default font settings
Diffstat (limited to 'plugins/NewStory/src/fonts.cpp')
-rw-r--r--plugins/NewStory/src/fonts.cpp5
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);