Frontend: Use Roboto font

This commit is contained in:
Connor McLaughlin 2019-11-08 00:22:10 +10:00
parent 52caf312d9
commit e8ebead23d
4 changed files with 2507 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -56,3 +56,11 @@ void ImGui::StyleColorsDarker(ImGuiStyle* dst)
colors[ImGuiCol_NavWindowingDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.20f);
colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.80f, 0.80f, 0.80f, 0.35f);
}
#include "font_roboto_regular.inl"
void ImGui::AddRobotoRegularFont(float size /*= 15.0f*/)
{
ImGui::GetIO().Fonts->AddFontFromMemoryCompressedTTF(s_font_roboto_regular_compressed_data,
s_font_roboto_regular_compressed_size, 15.0f);
}

View file

@ -3,4 +3,5 @@
namespace ImGui {
void StyleColorsDarker(ImGuiStyle* dst = nullptr);
void AddRobotoRegularFont(float size = 15.0f);
}

View file

@ -93,6 +93,7 @@ bool SDLHostInterface::CreateImGuiContext()
ImGui::GetIO().BackendFlags |= ImGuiBackendFlags_HasGamepad;
ImGui::StyleColorsDarker();
ImGui::AddRobotoRegularFont();
return true;
}