7 std::shared_ptr<TextRenderer>
font;
23 std::pair<uint32_t,std::shared_ptr<TextRenderer>>
GetFont(
const std::string &path,
int glyph_size,
bool fixed);
29 std::shared_ptr<TextRenderer>
GetFont(uint32_t
id);
39 std::pair<uint32_t,std::shared_ptr<TextRenderer>>
UpdateFont(uint32_t font_id,
const std::string &path,
int glyph_size,
bool fixed);
41 inline std::unordered_map<uint32_t,struct FontInfo> &
GetFonts(){
45 std::unordered_map<uint32_t,struct FontInfo> m_Fonts;
std::pair< uint32_t, std::shared_ptr< TextRenderer > > UpdateFont(uint32_t font_id, const std::string &path, int glyph_size, bool fixed)
std::unordered_map< uint32_t, struct FontInfo > & GetFonts()
std::pair< uint32_t, std::shared_ptr< TextRenderer > > GetFont(const std::string &path, int glyph_size, bool fixed)
void ReleaseFont(uint32_t font_id)
std::shared_ptr< TextRenderer > font
FontInfo(std::shared_ptr< TextRenderer > f)