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

View File

@ -154,6 +154,7 @@
<ClInclude Include="..\..\libs\gl3w\GL\gl3w.h" /> <ClInclude Include="..\..\libs\gl3w\GL\gl3w.h" />
<ClInclude Include="..\..\libs\gl3w\GL\glcorearb.h" /> <ClInclude Include="..\..\libs\gl3w\GL\glcorearb.h" />
<ClInclude Include="..\..\src\Arimo.hpp" /> <ClInclude Include="..\..\src\Arimo.hpp" />
<ClInclude Include="..\..\src\Cousine.hpp" />
<ClInclude Include="..\..\src\FontAwesomeSolid.hpp" /> <ClInclude Include="..\..\src\FontAwesomeSolid.hpp" />
<ClInclude Include="..\..\src\imgui_impl_glfw_gl3.h" /> <ClInclude Include="..\..\src\imgui_impl_glfw_gl3.h" />
</ItemGroup> </ItemGroup>

View File

@ -209,6 +209,9 @@
<ClInclude Include="..\..\src\FontAwesomeSolid.hpp"> <ClInclude Include="..\..\src\FontAwesomeSolid.hpp">
<Filter>src</Filter> <Filter>src</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\src\Cousine.hpp">
<Filter>src</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Natvis Include="DebugVis.natvis" /> <Natvis Include="DebugVis.natvis" />

4811
profiler/src/Cousine.hpp Normal file

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,7 @@
#include "../../server/TracyVersion.hpp" #include "../../server/TracyVersion.hpp"
#include "Arimo.hpp" #include "Arimo.hpp"
#include "Cousine.hpp"
#include "FontAwesomeSolid.hpp" #include "FontAwesomeSolid.hpp"
static void glfw_error_callback(int error, const char* description) static void glfw_error_callback(int error, const char* description)
@ -124,7 +125,7 @@ int main( int argc, char** argv )
ImGuiIO& io = ImGui::GetIO(); ImGuiIO& io = ImGui::GetIO();
io.Fonts->AddFontFromMemoryCompressedTTF( tracy::Arimo_compressed_data, tracy::Arimo_compressed_size, 15.0f * dpiScale, nullptr, rangesBasic ); 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 ); 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(); ImGui::StyleColorsDark();
auto& style = ImGui::GetStyle(); auto& style = ImGui::GetStyle();