summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-03-21 19:55:19 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-03-21 19:55:19 +0300
commitf82bcf748889da86d6d6dd4e8857e0a1a7f8181d (patch)
tree6e8b3ece7b0b845cd4249a113793373da780e851 /plugins/NewStory/src
parent6732618d43a79bbe309a1cec6165a5ae4022a154 (diff)
fix for a font settings
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r--plugins/NewStory/src/templates.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp
index 8ad26c7c88..5581ec9d90 100644
--- a/plugins/NewStory/src/templates.cpp
+++ b/plugins/NewStory/src/templates.cpp
@@ -38,10 +38,10 @@ static uint32_t color2html(COLORREF clr)
static wchar_t* font2html(LOGFONTA &lf, wchar_t *dest)
{
- mir_snwprintf(dest, 100, L"font-family: %s; font-size: %dpt; font-weight: %s %s",
+ mir_snwprintf(dest, 100, L"font-family: %S; font-size: %dpt; font-weight: %s %s",
lf.lfFaceName, abs((signed char)lf.lfHeight) * 74 / g_iPixelY,
- lf.lfWeight >= FW_BOLD ? "bold" : "normal",
- lf.lfItalic ? "; font-style: italic;" : "");
+ lf.lfWeight >= FW_BOLD ? L"bold" : L"normal",
+ lf.lfItalic ? L"; font-style: italic;" : L"");
return dest;
}
@@ -149,7 +149,7 @@ CMStringW ItemData::formatHtml(const wchar_t *pwszStr)
str.Append(L"</body></html>");
- // Netlib_Logf(0, str);
+ // Netlib_LogfW(0, str);
return str;
}