1#include "UIFontManager.h"
3#include <unordered_map>
5static std::unordered_map<std::string, ImFont *> fonts;
7void LoadUIFont(std::string name,
float pizelSize, std::string path)
9 ImGuiIO &io = ImGui::GetIO();
10 fonts[name] = io.Fonts->AddFontFromFileTTF(path.c_str(), pizelSize);
13ImFont *GetUIFont(std::string name)
15 if (fonts.find(name) != fonts.end())