CheatMenuSA/src/fontmgr.h

26 lines
449 B
C
Raw Normal View History

2021-11-05 05:59:11 -04:00
#pragma once
#include "pch.h"
class FontMgr
{
private:
struct FontInfo
{
ImFont *m_pFont;
size_t fontSize;
std::string m_path;
};
public:
static inline std::vector<FontInfo> m_vecFonts;
FontMgr() = delete;
FontMgr(FontMgr&) = delete;
static ImFont* GetFont(const char* fontName);
static ImFont* LoadFont(const char* fontName, float fontMul = 1.0f);
static void ReinitFonts();
};