summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/Entrypoint/main.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/core/src/Entrypoint/main.cpp b/core/src/Entrypoint/main.cpp
index b82214d..a8c988a 100644
--- a/core/src/Entrypoint/main.cpp
+++ b/core/src/Entrypoint/main.cpp
@@ -7,8 +7,8 @@
#include "Entrypoint/Vulkan.hpp"
#include <glad/glad.h>
-
#include <GLFW/glfw3.h>
+#include <IconsFontAwesome.h>
#include <imgui.h>
#include <argparse/argparse.hpp>
#include <iostream>
@@ -124,11 +124,18 @@ int main(int argc, char* argv[]) {
auto backend = CreateBackend(backendOption);
auto& io = ImGui::GetIO();
+ // Includes latin alphabet, although for some reason smaller than if rendered using 18 point NotoSans regular
io.Fonts->AddFontFromFileTTF("fonts/NotoSansSC-Regular.otf", 18, nullptr, io.Fonts->GetGlyphRangesChineseSimplifiedCommon());
+ ImWchar kIconRanges[] = { ICON_MIN_FA, ICON_MAX_FA };
+ ImFontConfig config;
+ config.MergeMode = true;
+ io.Fonts->AddFontFromFileTTF("fonts/FontAwesome5-Solid.otf", 14, &config, kIconRanges);
+
auto window = backend->GetWindow();
while (!glfwWindowShouldClose(window)) {
backend->BeginFrame();
+ ImGui::ShowDemoWindow();
backend->EndFrame();
}