From f82bcf748889da86d6d6dd4e8857e0a1a7f8181d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 21 Mar 2024 19:55:19 +0300 Subject: fix for a font settings --- plugins/NewStory/src/templates.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/NewStory/src') 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""); - // Netlib_Logf(0, str); + // Netlib_LogfW(0, str); return str; } -- cgit v1.2.3