mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Use arial font, if available.
This commit is contained in:
parent
4f3a64be9d
commit
9e4bd2a645
@ -5,6 +5,7 @@
|
||||
#include <GLFW/glfw3.h>
|
||||
#include <memory>
|
||||
#include "../nfd/nfd.h"
|
||||
#include <sys/stat.h>
|
||||
|
||||
#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" };
|
||||
|
Loading…
Reference in New Issue
Block a user