#pragma once #include "includes.h" // DayZ overlay integration: resolved relative to the executable's working // directory. CMake copies framework/data/uicons next to the built binary. inline constexpr const char* flaticon_uicons_regular_rounded_path = "data\\uicons\\uicons-regular-rounded.ttf"; class c_font { public: void update(); ImFont* get(const std::vector& font_data, float size); ImFont* get_file(const std::string& file_path, float size, bool private_glyphs = false); private: struct font_data { std::vector data; std::string file_path; const void* source; float size; ImFont* font; bool file; bool private_glyphs; }; void add(const std::vector& font_data, float size); void add_file(const std::string& file_path, float size, bool private_glyphs); std::vector data; }; inline std::unique_ptr font = std::make_unique();