From bcb11789542b09220d2867e9bb6377a7aaf34232 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Wed, 14 Aug 2024 09:23:44 +0200 Subject: [PATCH] Fix encoding of font descriptor --- src/slic3r/Utils/WxFontUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/Utils/WxFontUtils.cpp b/src/slic3r/Utils/WxFontUtils.cpp index d99e6b09f2..0547ce3e8c 100644 --- a/src/slic3r/Utils/WxFontUtils.cpp +++ b/src/slic3r/Utils/WxFontUtils.cpp @@ -186,7 +186,7 @@ std::string WxFontUtils::store_wxFont(const wxFont &font) "IsFixedWidth(" << font.IsFixedWidth() << "), " << "IsUsingSizeInPixels(" << font.IsUsingSizeInPixels() << "), " << "Encoding(" << (int)font.GetEncoding() << "), " ; - return std::string(font_descriptor.c_str()); + return std::string(font_descriptor.ToUTF8().data()); } wxFont WxFontUtils::load_wxFont(const std::string &font_descriptor)