MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / InitializeCustomFont

Method InitializeCustomFont

ogsr_engine/xrGame/HUDManager.cpp:135–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135CGameFont* CFontManager::InitializeCustomFont(LPCSTR section, u32 flags)
136{
137 for (auto& font : m_all_fonts)
138 {
139 if (strstr(font->m_font_name.c_str(), section))
140 return font;
141 }
142
143 CGameFont* pFontAdd = NULL;
144 InitializeFont(pFontAdd, section, flags);
145 pFontAdd->m_bCustom = true;
146 return pFontAdd;
147}
148
149CFontManager::~CFontManager()
150{

Callers 2

InitFontMethod · 0.80
GetFontCustomFunction · 0.80

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected