From 4578e1d2c0d36e4a7ebb6b9a006fca2729858e36 Mon Sep 17 00:00:00 2001 From: spokendotcpp Date: Fri, 12 Aug 2022 19:58:54 +0200 Subject: [PATCH] Building on windows. --- src/mhache_window.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mhache_window.cpp b/src/mhache_window.cpp index 710c062..a8a095a 100644 --- a/src/mhache_window.cpp +++ b/src/mhache_window.cpp @@ -46,8 +46,10 @@ MHacheWindow::MHacheWindow(int width, int height) const std::filesystem::path filefont = "../../fonts/Sweet16mono.ttf"; - if (std::filesystem::exists(filefont)) - ImGui::GetIO().Fonts->AddFontFromFileTTF(filefont.c_str(), 16); + if (std::filesystem::exists(filefont)) { + ImGui::GetIO().Fonts->AddFontFromFileTTF(filefont.u8string().c_str(), 16); + } + else ImGui::GetIO().Fonts->AddFontDefault(); }