From 29f38c8feb5c215ccc9b1f88c9ec193d31286d4d Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 14 Aug 2025 01:41:19 +0200 Subject: feat: custom UI font --- src/core/window.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/core/window.h') diff --git a/src/core/window.h b/src/core/window.h index 96678f8..8b0945f 100644 --- a/src/core/window.h +++ b/src/core/window.h @@ -4,6 +4,8 @@ #include "log.h" #include +#include + #include namespace Donut @@ -42,6 +44,9 @@ namespace Donut private: void init(); void shutdown(); + + void setup_im_gui_fonts(); + void apply_im_gui_theme(); void shutdown_im_gui(); static void glfw_error_callback(int error, const char* description); @@ -64,5 +69,9 @@ namespace Donut bool m_is_closed; bool m_cursor_locked = false; bool m_cursor_visible = true; + + ImFont* m_main_font = nullptr; + ImFont* m_small_font = nullptr; + ImFont* m_large_font = nullptr; }; } -- cgit v1.3