4std::pair<uint32_t,std::shared_ptr<TextRenderer>>
FontManager::GetFont(
const std::string &path,
int glyph_size,
bool fixed){
5 for(
auto &[
id,font]:m_Fonts){
8 if(f.m_LoadedGlyphSize==glyph_size && f.
m_Fixed==fixed && f.m_LoadedFontPath==path){
10 return {id,font.font};
14 uint32_t
id=m_NextID++;
15 std::shared_ptr<TextRenderer> f=std::make_shared<TextRenderer>(path,glyph_size,fixed,
id);