Add log for creation of font descriptor

This commit is contained in:
Filip Sykala - NTB T15p 2023-03-01 12:52:06 +01:00
parent a8c580c957
commit bc437661dc

View File

@ -169,6 +169,13 @@ std::string WxFontUtils::store_wxFont(const wxFont &font)
{ {
// wxString os = wxPlatformInfo::Get().GetOperatingSystemIdName(); // wxString os = wxPlatformInfo::Get().GetOperatingSystemIdName();
wxString font_descriptor = font.GetNativeFontInfoDesc(); wxString font_descriptor = font.GetNativeFontInfoDesc();
BOOST_LOG_TRIVIAL(trace) << "'" << font_descriptor << "' wx string get from GetNativeFontInfoDesc. wxFont " <<
"IsOk(" << font.IsOk() << "), " <<
"isNull(" << font.IsNull() << ")" <<
"IsFree(" << font.IsFree() << "), " <<
"IsFixedWidth(" << font.IsFixedWidth() << "), " <<
"IsUsingSizeInPixels(" << font.IsUsingSizeInPixels() << "), " <<
"Encoding(" << (int)font.GetEncoding() << "), " ;
return std::string(font_descriptor.c_str()); return std::string(font_descriptor.c_str());
} }