Building on windows.

This commit is contained in:
2022-08-12 19:58:54 +02:00
parent 2096e6814a
commit 4578e1d2c0

View File

@@ -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();
}