1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use Cousine-Regular as monospaced font.

This commit is contained in:
Bartosz Taudul
2018-08-17 20:57:26 +02:00
parent fe37c4ab80
commit e6ab7692c8
4 changed files with 4817 additions and 1 deletions
+2 -1
View File
@@ -22,6 +22,7 @@
#include "../../server/TracyVersion.hpp"
#include "Arimo.hpp"
#include "Cousine.hpp"
#include "FontAwesomeSolid.hpp"
static void glfw_error_callback(int error, const char* description)
@@ -124,7 +125,7 @@ int main( int argc, char** argv )
ImGuiIO& io = ImGui::GetIO();
io.Fonts->AddFontFromMemoryCompressedTTF( tracy::Arimo_compressed_data, tracy::Arimo_compressed_size, 15.0f * dpiScale, nullptr, rangesBasic );
io.Fonts->AddFontFromMemoryCompressedTTF( tracy::FontAwesomeSolid_compressed_data, tracy::FontAwesomeSolid_compressed_size, 14.0f * dpiScale, &configMerge, rangesIcons );
auto fixedWidth = io.Fonts->AddFontDefault();
auto fixedWidth = io.Fonts->AddFontFromMemoryCompressedTTF( tracy::Cousine_compressed_data, tracy::Cousine_compressed_size, 15.0f * dpiScale );
ImGui::StyleColorsDark();
auto& style = ImGui::GetStyle();