Files
Nuake-custom/Editor/src/Misc/InterfaceFonts.h

28 lines
439 B
C++

#pragma once
#include <map>
enum Fonts {
Normal, Bold, LargeBold, Icons, BigIcon, Title, SubTitle
};
class ImFont;
// Help class that automatically push and pops itself when
// Reaching end of scope
class UIFont {
private:
ImFont* ImGuiFont;
public:
UIFont(Fonts font);
~UIFont();
};
class FontManager {
private:
static std::map < Fonts, ImFont*> mFonts;
public:
static void LoadFonts();
static ImFont* GetFont(Fonts font);
};