diff --git a/standalone/src/main.cpp b/standalone/src/main.cpp index 277fa882..8b576b38 100644 --- a/standalone/src/main.cpp +++ b/standalone/src/main.cpp @@ -5,6 +5,7 @@ #include #include #include "../nfd/nfd.h" +#include #include "../../server/TracyFileRead.hpp" #include "../../server/TracyView.hpp" @@ -44,6 +45,16 @@ int main(int, char**) //io.Fonts->AddFontFromFileTTF("../../extra_fonts/ProggyTiny.ttf", 10.0f); //io.Fonts->AddFontFromFileTTF("c:\\Windows\\Fonts\\ArialUni.ttf", 18.0f, NULL, io.Fonts->GetGlyphRangesJapanese()); + { + const char* font = "c:\\Windows\\Fonts\\arial.ttf"; + struct stat st; + if( stat( font, &st ) == 0 ) + { + ImGuiIO& io = ImGui::GetIO(); + io.Fonts->AddFontFromFileTTF( font, 15.0f ); + } + } + ImVec4 clear_color = ImColor(114, 144, 154); char addr[1024] = { "127.0.0.1" };